feat(mobile): auth added in
Some checks failed
Build and Push LST Docker Image / docker (push) Has been cancelled

This commit is contained in:
2026-05-06 05:07:16 -05:00
parent 2ad78e22f1
commit ba30281e59
23 changed files with 4875 additions and 176 deletions

View File

@@ -1,5 +1,6 @@
import {
boolean,
jsonb,
pgEnum,
pgTable,
text,
@@ -25,7 +26,7 @@ export const scanUser = pgTable(
scannerId: text("scanner_id").unique().notNull(),
pinNumber: text("pin_number").unique().notNull(),
pinHash: text("pin_hash").notNull(),
excludedCommand: text("excluded_commands").default(""),
excludedCommand: jsonb("excluded_commands").default([]),
role: mobileRoleEnum("role").notNull().default("user"),
active: boolean("active").default(true),
lastScan: timestamp("last_scan").defaultNow(),