chore: migrate to postgres

This commit is contained in:
Henry
2024-03-27 20:59:51 +00:00
parent ac3fff47c7
commit 09cd6529fc
35 changed files with 1270 additions and 9723 deletions

View File

@@ -5,7 +5,7 @@ import { DrizzleAdapter } from "@auth/drizzle-adapter";
import NextAuth, { type DefaultSession } from "next-auth";
import { db } from "~/server/db";
import { mySqlTable } from "~/server/db/schema";
import { pgTable} from "drizzle-orm/pg-core";
/**
* Module augmentation for `next-auth` types. Allows us to add custom properties to the `session`
@@ -45,7 +45,7 @@ export const {
},
}),
},
adapter: DrizzleAdapter(db, mySqlTable),
adapter: DrizzleAdapter(db, pgTable),
pages: {
signIn: "/auth/login",
// signOut: "/auth/signout",