export const authSchema = pgSchema('auth')
export const authUsers = authSchema.table('users', {
id: uuid('id').primaryKey().notNull(),
})
export const user = pgTable('user', {
id: uuid('id')
.primaryKey()
.notNull()
.references(() => authUsers.id, { onDelete: 'cascade' }),
createdAt: timestamp('created_at').defaultNow(),
updatedAt: timestamp('updated_at'),
name: text('name').notNull(),
})
export const authSchema = pgSchema('auth')
export const authUsers = authSchema.table('users', {
id: uuid('id').primaryKey().notNull(),
})
export const user = pgTable('user', {
id: uuid('id')
.primaryKey()
.notNull()
.references(() => authUsers.id, { onDelete: 'cascade' }),
createdAt: timestamp('created_at').defaultNow(),
updatedAt: timestamp('updated_at'),
name: text('name').notNull(),
})