refactor(forklifts): more refactoring to improve during production

This commit is contained in:
2025-11-20 19:47:52 -06:00
parent 7b6c9bdfbf
commit 8c0f67ca35
8 changed files with 68 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ router.post("/", async (req: Request, res: Response) => {
companyId: req.body.companyId,
invoiceNumber: req.body.invoiceNumber,
invoiceDate: req.body.invoiceDate,
comment: req.body.comment,
uploadedBy: req.body.uploadedBy,
totalAmount: req.body.totalAmount,
});

View File

@@ -1,4 +1,4 @@
import { numeric, pgTable, serial, uuid } from "drizzle-orm/pg-core";
import { numeric, pgTable, serial, text, uuid } from "drizzle-orm/pg-core";
import { createInsertSchema } from "drizzle-zod";
import { forklifts } from "./forklifts.js";
import { leaseInvoices } from "./leaseInvoices.js";

View File

@@ -17,6 +17,7 @@ export const leaseInvoices = pgTable("lease_invoices", {
invoiceNumber: text("invoice_number").unique().notNull(),
invoiceDate: date("invoice_date").notNull(),
totalAmount: numeric("total_amount"),
comment: text("comment"),
add_date: timestamp("add_date"),
uploadedBy: text("uploaded_by"),
});