11 lines
307 B
TypeScript
11 lines
307 B
TypeScript
import { integer, sqliteTable, text } from 'drizzle-orm/sqlite-core'
|
|
|
|
export const user = sqliteTable('user', {
|
|
id: text('id').primaryKey(),
|
|
age: integer('age'),
|
|
username: text('username').notNull().unique(),
|
|
passwordHash: text('password_hash').notNull()
|
|
})
|
|
|
|
export type User = typeof user.$inferSelect
|