Versão 0.5 antes do PWA

This commit is contained in:
Duarte
2026-06-01 09:08:37 +01:00
parent 66581ef584
commit 75bc71eb39
12 changed files with 120 additions and 10 deletions
+1
View File
@@ -2,6 +2,7 @@ import { integer, sqliteTable, text } from 'drizzle-orm/sqlite-core';
export const users = sqliteTable('users', {
id: text('id').primaryKey().$defaultFn(() => crypto.randomUUID()),
name: text('name').notNull(),
username: text('username').notNull().unique(),
passwordHash: text('password_hash').notNull(),
role: text('role').notNull(), // 'admin' | 'shift_manager' | 'volunteer'