diff --git a/src/server/db/schema.ts b/src/server/db/schema.ts index 26bcbf8e..6afca501 100644 --- a/src/server/db/schema.ts +++ b/src/server/db/schema.ts @@ -9,7 +9,6 @@ import { timestamp, varchar, } from "drizzle-orm/mysql-core"; -import { type AdapterAccount } from "@auth/core/adapters"; /** * This is an example of how to use the multi-project schema feature of Drizzle ORM. Use the same @@ -189,7 +188,7 @@ export const accounts = mySqlTable( { userId: varchar("userId", { length: 255 }).notNull(), type: varchar("type", { length: 255 }) - .$type() + .$type<"oauth" | "oidc" | "email">() .notNull(), provider: varchar("provider", { length: 255 }).notNull(), providerAccountId: varchar("providerAccountId", { length: 255 }).notNull(),