feat(labeling): added printers and machine and other data for preprinting

This commit is contained in:
2025-10-17 07:44:39 -05:00
parent c59b6a1ec2
commit 953af5e0fe
15 changed files with 1868 additions and 8 deletions

View File

@@ -0,0 +1,33 @@
CREATE TABLE "printers" (
"printer_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"humanReadableId" text,
"name" text NOT NULL,
"ip_address" text,
"port" numeric,
"status" text,
"status_text" text,
"last_time_printed" timestamp DEFAULT now() NOT NULL,
"assigned" boolean DEFAULT false,
"remark" text,
"print_delay" numeric DEFAULT '90',
"monitor_state" boolean DEFAULT false,
"processes" jsonb DEFAULT '[]'::jsonb,
"print_delay_override" boolean DEFAULT false,
"add_Date" timestamp DEFAULT now(),
"upd_date" timestamp DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE "prodlabels" (
"label_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"printerID" integer,
"printerName" text,
"line" integer,
"runningNr" integer NOT NULL,
"status" text,
"add_user" text DEFAULT 'lst',
"add_date" timestamp DEFAULT now(),
"upd_date" timestamp DEFAULT now()
);
--> statement-breakpoint
CREATE UNIQUE INDEX "humanReadableId" ON "printers" USING btree ("humanReadableId");--> statement-breakpoint
CREATE UNIQUE INDEX "runningNr" ON "prodlabels" USING btree ("runningNr");

File diff suppressed because it is too large Load Diff

View File

@@ -141,6 +141,13 @@
"when": 1760623729227,
"tag": "0019_bizarre_tarot",
"breakpoints": true
},
{
"idx": 20,
"version": "7",
"when": 1760703799708,
"tag": "0020_conscious_hairball",
"breakpoints": true
}
]
}