init
This commit is contained in:
10
src/lib/server/db/user.ts
Normal file
10
src/lib/server/db/user.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user