feat(auth) : notnull
CI / Verify (push) Successful in 1m21s
CI / Build immutable images and deploy (push) Successful in 2m35s

This commit is contained in:
2026-09-22 19:01:34 +07:00 Unverified
parent 41da2478ac
commit 95f491b862
4 changed files with 2826 additions and 2 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ export const accounts = authSchema.table(
"account",
{
id: text("id").primaryKey(),
issuer: text("issuer").notNull(),
issuer: text("issuer"),
accountId: text("account_id").notNull(),
providerId: text("provider_id").notNull(),
userId: text("user_id")
@@ -101,7 +101,7 @@ export const accounts = authSchema.table(
...timestamps,
},
(table) => [
uniqueIndex("account_issuer_unique").on(table.issuer, table.accountId),
uniqueIndex("account_provider_unique").on(table.providerId, table.accountId),
index("account_user_id_idx").on(table.userId),
],
);