feat(auth) : notnull
This commit is contained in:
+2
-2
@@ -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),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user