Skip to content

Commit

Permalink
Merge pull request #1 from Abdulrahman-AL-Sabagh/patch-1
Browse files Browse the repository at this point in the history
Update schema.ts
  • Loading branch information
webdevcody authored Dec 30, 2023
2 parents 34f4af3 + cbb9b6a commit e2dc3fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const accounts = pgTable(
session_state: text("session_state"),
},
(account) => ({
compoundKey: primaryKey(account.provider, account.providerAccountId),
primaryKey: [account.provider, account.providerAccountId],
})
);

Expand All @@ -57,7 +57,7 @@ export const verificationTokens = pgTable(
expires: timestamp("expires", { mode: "date" }).notNull(),
},
(vt) => ({
compoundKey: primaryKey(vt.identifier, vt.token),
primaryKey: [vt.identifier, vt.token],
})
);

Expand Down

0 comments on commit e2dc3fe

Please sign in to comment.