export const authMethods = pgTable(
'auth_methods',
{
tenantId: varchar('tenant_id', { length: 128 }).notNull(),
userId: varchar('user_id', { length: 128 })
.notNull()
.references(() => users.id),
type: authMethodTypeEnum('type').notNull(),
identifier: text('identifier').notNull(),
secret: text('secret').notNull(),
authVendorData: jsonb('auth_vendor_data'),
createdAt: timestamp('created_at').defaultNow(),
updatedAt: timestamp('updated_at').defaultNow(),
}
)
export const authMethods = pgTable(
'auth_methods',
{
tenantId: varchar('tenant_id', { length: 128 }).notNull(),
userId: varchar('user_id', { length: 128 })
.notNull()
.references(() => users.id),
type: authMethodTypeEnum('type').notNull(),
identifier: text('identifier').notNull(),
secret: text('secret').notNull(),
authVendorData: jsonb('auth_vendor_data'),
createdAt: timestamp('created_at').defaultNow(),
updatedAt: timestamp('updated_at').defaultNow(),
}
)