import { boolean, pgSchema, text, timestamp } from 'drizzle-orm/pg-core'
export const authSchema = pgSchema('auth')
export const users = authSchema.table('users', {
id: text('id').primaryKey(),
name: text('name').notNull(),
email: text('email').notNull().unique(),
emailVerified: boolean('email_verified')
.$defaultFn(() => false)
.notNull(),
image: text('image'),
createdAt: timestamp('created_at')
.$defaultFn(() => /* @__PURE__ */ new Date())
.notNull(),
updatedAt: timestamp('updated_at')
.$defaultFn(() => /* @__PURE__ */ new Date())
.notNull(),
})
import { boolean, pgSchema, text, timestamp } from 'drizzle-orm/pg-core'
export const authSchema = pgSchema('auth')
export const users = authSchema.table('users', {
id: text('id').primaryKey(),
name: text('name').notNull(),
email: text('email').notNull().unique(),
emailVerified: boolean('email_verified')
.$defaultFn(() => false)
.notNull(),
image: text('image'),
createdAt: timestamp('created_at')
.$defaultFn(() => /* @__PURE__ */ new Date())
.notNull(),
updatedAt: timestamp('updated_at')
.$defaultFn(() => /* @__PURE__ */ new Date())
.notNull(),
})