Schema and Config Changes

This commit is contained in:
2025-12-09 12:12:05 +01:00
parent 861984e4b1
commit 4a3515f6f3
3 changed files with 3 additions and 11 deletions

View File

@@ -46,20 +46,12 @@ export const bankstatements = pgTable("bankstatements", {
currency: text("currency"),
valueDate: text("valueDate"),
incomingInvoice: bigint("incomingInvoice", { mode: "number" }).references(
() => incominginvoices.id
),
mandateId: text("mandateId"),
contract: bigint("contract", { mode: "number" }).references(
() => contracts.id
),
createdDocument: bigint("createdDocument", { mode: "number" }).references(
() => createddocuments.id
),
archived: boolean("archived").notNull().default(false),
updatedAt: timestamp("updated_at", { withTimezone: true }),

View File

@@ -71,7 +71,7 @@ export const createddocuments = pgTable("createddocuments", {
serialConfig: jsonb("serialConfig").default({}),
linkedDocument: bigint("linkedDocument", { mode: "number" }).references(
createddocument: bigint("linkedDocument", { mode: "number" }).references(
() => createddocuments.id
),

View File

@@ -114,8 +114,8 @@ export const resourceConfig = {
},
createddocuments: {
table: createddocuments,
mtoLoad: ["customer", "project", "contact", "contract", "plant","letterhead"],
mtmLoad: ["statementallocations","files"],
mtoLoad: ["customer", "project", "contact", "contract", "plant","letterhead","createddocument"],
mtmLoad: ["statementallocations","files","createddocuments"],
mtmListLoad: ["statementallocations"],
},
texttemplates: {