export const users = pgTable('users', {
id: uuid('id').primaryKey().defaultRandom(),
name: varchar('name', { length: 256 }).notNull(),
slug: varchar('slug', { length: 256 }).notNull().unique(),
biography: text('biography'),
email: varchar('email', { length: 256 }).notNull(),
password: varchar('password', { length: 256 }).notNull(),
role: role('role').notNull().default('STANDARD'),
active: boolean('active').notNull().default(false),
createdAt: timestamp('created_at').notNull().defaultNow(),
updatedAt: timestamp('updated_at').notNull().defaultNow()
})
export const users = pgTable('users', {
id: uuid('id').primaryKey().defaultRandom(),
name: varchar('name', { length: 256 }).notNull(),
slug: varchar('slug', { length: 256 }).notNull().unique(),
biography: text('biography'),
email: varchar('email', { length: 256 }).notNull(),
password: varchar('password', { length: 256 }).notNull(),
role: role('role').notNull().default('STANDARD'),
active: boolean('active').notNull().default(false),
createdAt: timestamp('created_at').notNull().defaultNow(),
updatedAt: timestamp('updated_at').notNull().defaultNow()
})