refactor(forklifts): more refactoring to improve during production
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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"),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user