refactor(serverdb): format changes

This commit is contained in:
2025-06-23 11:33:28 -05:00
parent 4a02bbc368
commit 77d9e5d095

View File

@@ -1,4 +1,14 @@
import {boolean, date, jsonb, numeric, pgTable, text, timestamp, uniqueIndex, uuid} from "drizzle-orm/pg-core";
import {
boolean,
date,
jsonb,
numeric,
pgTable,
text,
timestamp,
uniqueIndex,
uuid,
} from "drizzle-orm/pg-core";
import { createSelectSchema } from "drizzle-zod";
export const serverData = pgTable(
@@ -21,9 +31,13 @@ export const serverData = pgTable(
serverLoc: text("serverLoc"),
oldVersion: text("oldVersion"),
lastUpdated: timestamp("lastUpdated").defaultNow(),
shippingHours: text("shippingHours").default('[{"early": "06:30", "late": "23:00"}]'),
shippingHours: text("shippingHours").default(
'[{"early": "06:30", "late": "23:00"}]'
),
tiPostTime: text("tiPostTime").default('[{"from": "24", "to": "24"}]'),
otherSettings: jsonb("otherSettings").default([{specialInstructions: "something for ti", active: false}]),
otherSettings: jsonb("otherSettings").default([
{ specialInstructions: "something for ti", active: false },
]),
isUpgrading: boolean("isUpgrading").default(false),
},