feat(invoices): add billingEntityType/Id for polymorphic billing
This commit is contained in:
3
src/lib/db/migrations/0006_great_pixie.sql
Normal file
3
src/lib/db/migrations/0006_great_pixie.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE "invoices" ADD COLUMN "billing_entity_type" text DEFAULT 'client' NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "invoices" ADD COLUMN "billing_entity_id" text DEFAULT '' NOT NULL;--> statement-breakpoint
|
||||
CREATE INDEX "idx_invoices_billing_entity" ON "invoices" USING btree ("port_id","billing_entity_type","billing_entity_id");
|
||||
8525
src/lib/db/migrations/meta/0006_snapshot.json
Normal file
8525
src/lib/db/migrations/meta/0006_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -43,6 +43,13 @@
|
||||
"when": 1776959832091,
|
||||
"tag": "0005_stale_kronos",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 6,
|
||||
"version": "7",
|
||||
"when": 1776959911400,
|
||||
"tag": "0006_great_pixie",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user