feat(labeling): added printers and machine and other data for preprinting
This commit is contained in:
33
migrations/0020_conscious_hairball.sql
Normal file
33
migrations/0020_conscious_hairball.sql
Normal 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");
|
||||
1573
migrations/meta/0020_snapshot.json
Normal file
1573
migrations/meta/0020_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -141,6 +141,13 @@
|
||||
"when": 1760623729227,
|
||||
"tag": "0019_bizarre_tarot",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 20,
|
||||
"version": "7",
|
||||
"when": 1760703799708,
|
||||
"tag": "0020_conscious_hairball",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user