feat: Add flatrate billing model for editorial accounts

This commit is contained in:
Leon Tonhäuser committed 2026-08-11 03:27:10 +02:00
1 parent 699580a6a0
commit 0b1ffdfdfc
39 files changed
+4900 -57

No files matched your search

+1
View File
@@ -39,6 +39,7 @@ export const billingReports = pgTable(
billingAddressSnapshot: jsonb("billing_address_snapshot").notNull(),
invoiceNumber: text("invoice_number"),
netTotalCents: integer("net_total_cents").notNull(),
flatrateCentsSnapshot: integer("flatrate_cents_snapshot"),
status: reportStatus("status").notNull().default("draft"),
pdf: bytea("pdf"),
pdfSha256: varchar("pdf_sha256", { length: 64 }),