feat(intial auth): intial auth setup for the scanner
Some checks failed
Build and Push LST Docker Image / docker (push) Has been cancelled
Some checks failed
Build and Push LST Docker Image / docker (push) Has been cancelled
This commit is contained in:
14
migrations/0042_melted_talon.sql
Normal file
14
migrations/0042_melted_talon.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE TYPE "public"."mobile_role" AS ENUM('user', 'lead', 'manager', 'admin');--> statement-breakpoint
|
||||
CREATE TABLE "scan_users" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"scanner_id" integer NOT NULL,
|
||||
"pin_number" integer NOT NULL,
|
||||
"pin_hash" text NOT NULL,
|
||||
"excluded_commands" text DEFAULT '',
|
||||
"role" "mobile_role" DEFAULT 'user' NOT NULL,
|
||||
"active" boolean DEFAULT true,
|
||||
"last_scan" timestamp DEFAULT now(),
|
||||
"add_Date" timestamp DEFAULT now(),
|
||||
"upd_date" timestamp DEFAULT now()
|
||||
);
|
||||
Reference in New Issue
Block a user