refactor(db): added timezone check in so it comes over correct based on the backend timezone

This commit is contained in:
2026-06-01 16:05:36 -05:00
parent 45a0dee9ca
commit 2558b2e5bb
20 changed files with 55 additions and 37 deletions

View File

@@ -13,7 +13,7 @@ export const scanLog = pgTable("scan_log", {
status: text("status"),
scannerVersion: text("scanner_version").default("0"),
lines: jsonb("lines").default([]),
add_Date: timestamp("add_date").defaultNow(),
add_Date: timestamp("add_date", { withTimezone: true }).defaultNow(),
});
export const scanLogSchema = createSelectSchema(scanLog);