This commit is contained in:
Tobias Klemp
2025-11-02 20:40:27 +01:00
commit e7bd070b3e
67 changed files with 3205 additions and 0 deletions

10
src/lib/server/db/user.ts Normal file
View 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