diff --git a/docs/pages/getting-started/adapters/drizzle.mdx b/docs/pages/getting-started/adapters/drizzle.mdx index 09c9be0428..95a440a543 100644 --- a/docs/pages/getting-started/adapters/drizzle.mdx +++ b/docs/pages/getting-started/adapters/drizzle.mdx @@ -89,12 +89,14 @@ export const accounts = pgTable( id_token: text("id_token"), session_state: text("session_state"), }, - (account) => ({ - compoundKey: primaryKey({ - columns: [account.provider, account.providerAccountId], - }), - }) -) + (account) => [ + { + compoundKey: primaryKey({ + columns: [account.provider, account.providerAccountId], + }), + }, + ], +); export const sessions = pgTable("session", { sessionToken: text("sessionToken").primaryKey(), @@ -111,12 +113,14 @@ export const verificationTokens = pgTable( token: text("token").notNull(), expires: timestamp("expires", { mode: "date" }).notNull(), }, - (verificationToken) => ({ - compositePk: primaryKey({ - columns: [verificationToken.identifier, verificationToken.token], - }), - }) -) + (verificationToken) => [ + { + compositePk: primaryKey({ + columns: [verificationToken.identifier, verificationToken.token], + }), + }, + ], +); export const authenticators = pgTable( "authenticator", @@ -132,12 +136,14 @@ export const authenticators = pgTable( credentialBackedUp: boolean("credentialBackedUp").notNull(), transports: text("transports"), }, - (authenticator) => ({ - compositePK: primaryKey({ - columns: [authenticator.userId, authenticator.credentialID], - }), - }) -) + (authenticator) => [ + { + compositePK: primaryKey({ + columns: [authenticator.userId, authenticator.credentialID], + }), + }, + ], +); ```