Schema and Config Changes
This commit is contained in:
@@ -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 }),
|
||||
|
||||
@@ -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
|
||||
),
|
||||
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user