refactor(printers): added in processes for the upcoming reprint function

This commit is contained in:
2025-06-12 21:08:38 -05:00
parent 4f5d5faecb
commit 1cb285bea8
3 changed files with 2175 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -470,6 +470,13 @@
"when": 1749671243377, "when": 1749671243377,
"tag": "0066_nosy_dark_beast", "tag": "0066_nosy_dark_beast",
"breakpoints": true "breakpoints": true
},
{
"idx": 67,
"version": "7",
"when": 1749744049457,
"tag": "0067_shallow_trish_tilby",
"breakpoints": true
} }
] ]
} }

View File

@@ -7,6 +7,7 @@ import {
boolean, boolean,
uuid, uuid,
uniqueIndex, uniqueIndex,
jsonb,
} from "drizzle-orm/pg-core"; } from "drizzle-orm/pg-core";
import { createInsertSchema, createSelectSchema } from "drizzle-zod"; import { createInsertSchema, createSelectSchema } from "drizzle-zod";
import { z } from "zod"; import { z } from "zod";
@@ -26,6 +27,7 @@ export const printerData = pgTable(
remark: text("remark"), remark: text("remark"),
printDelay: numeric("printDelay").default("90"), printDelay: numeric("printDelay").default("90"),
monitorState: boolean("monitorState").default(false), monitorState: boolean("monitorState").default(false),
processes: jsonb("processes").default([]),
add_Date: timestamp("add_Date").defaultNow(), add_Date: timestamp("add_Date").defaultNow(),
upd_date: timestamp("upd_date").defaultNow(), upd_date: timestamp("upd_date").defaultNow(),
}, },