feat(invoices): added invoice + linking to forklift

This commit is contained in:
2025-11-04 22:12:08 -06:00
parent 577584ef4d
commit 2e05f6eeee
24 changed files with 13782 additions and 17 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE "forklifts" ADD COLUMN "upd_date" timestamp DEFAULT now();--> statement-breakpoint
ALTER TABLE "forklifts" ADD COLUMN "upd_user" text DEFAULT 'LST';

View File

@@ -0,0 +1 @@
ALTER TABLE "forklifts" ADD CONSTRAINT "forklifts_serial_number_unique" UNIQUE("serial_number");

View File

@@ -0,0 +1,6 @@
ALTER TABLE "lease_invoices" DROP CONSTRAINT "lease_invoices_company_id_forklift_companies_id_fk";
--> statement-breakpoint
ALTER TABLE "lease_invoices" DROP CONSTRAINT "lease_invoices_forklift_id_forklifts_forklift_id_fk";
--> statement-breakpoint
ALTER TABLE "lease_invoices" DROP COLUMN "company_id";--> statement-breakpoint
ALTER TABLE "lease_invoices" DROP COLUMN "forklift_id";

View File

@@ -0,0 +1 @@
ALTER TABLE "lease_invoices" ADD COLUMN "add_date" timestamp;

View File

@@ -0,0 +1 @@
ALTER TABLE "lease_invoices" ADD CONSTRAINT "lease_invoices_invoice_number_unique" UNIQUE("invoice_number");

View File

@@ -0,0 +1,2 @@
ALTER TABLE "lease_invoice_forklifts" ALTER COLUMN "id" SET DATA TYPE uuid;--> statement-breakpoint
ALTER TABLE "lease_invoice_forklifts" ALTER COLUMN "id" SET DEFAULT gen_random_uuid();

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -274,6 +274,48 @@
"when": 1762298736944,
"tag": "0038_secret_luminals",
"breakpoints": true
},
{
"idx": 39,
"version": "7",
"when": 1762310353351,
"tag": "0039_strange_iron_man",
"breakpoints": true
},
{
"idx": 40,
"version": "7",
"when": 1762310431830,
"tag": "0040_keen_abomination",
"breakpoints": true
},
{
"idx": 41,
"version": "7",
"when": 1762311550798,
"tag": "0041_aspiring_chamber",
"breakpoints": true
},
{
"idx": 42,
"version": "7",
"when": 1762312885208,
"tag": "0042_true_thor_girl",
"breakpoints": true
},
{
"idx": 43,
"version": "7",
"when": 1762313144802,
"tag": "0043_thick_sebastian_shaw",
"breakpoints": true
},
{
"idx": 44,
"version": "7",
"when": 1762314701057,
"tag": "0044_melted_mole_man",
"breakpoints": true
}
]
}