Schema and Config Changes
This commit is contained in:
@@ -46,20 +46,12 @@ export const bankstatements = pgTable("bankstatements", {
|
|||||||
currency: text("currency"),
|
currency: text("currency"),
|
||||||
valueDate: text("valueDate"),
|
valueDate: text("valueDate"),
|
||||||
|
|
||||||
incomingInvoice: bigint("incomingInvoice", { mode: "number" }).references(
|
|
||||||
() => incominginvoices.id
|
|
||||||
),
|
|
||||||
|
|
||||||
mandateId: text("mandateId"),
|
mandateId: text("mandateId"),
|
||||||
|
|
||||||
contract: bigint("contract", { mode: "number" }).references(
|
contract: bigint("contract", { mode: "number" }).references(
|
||||||
() => contracts.id
|
() => contracts.id
|
||||||
),
|
),
|
||||||
|
|
||||||
createdDocument: bigint("createdDocument", { mode: "number" }).references(
|
|
||||||
() => createddocuments.id
|
|
||||||
),
|
|
||||||
|
|
||||||
archived: boolean("archived").notNull().default(false),
|
archived: boolean("archived").notNull().default(false),
|
||||||
|
|
||||||
updatedAt: timestamp("updated_at", { withTimezone: true }),
|
updatedAt: timestamp("updated_at", { withTimezone: true }),
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export const createddocuments = pgTable("createddocuments", {
|
|||||||
|
|
||||||
serialConfig: jsonb("serialConfig").default({}),
|
serialConfig: jsonb("serialConfig").default({}),
|
||||||
|
|
||||||
linkedDocument: bigint("linkedDocument", { mode: "number" }).references(
|
createddocument: bigint("linkedDocument", { mode: "number" }).references(
|
||||||
() => createddocuments.id
|
() => createddocuments.id
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|||||||
@@ -114,8 +114,8 @@ export const resourceConfig = {
|
|||||||
},
|
},
|
||||||
createddocuments: {
|
createddocuments: {
|
||||||
table: createddocuments,
|
table: createddocuments,
|
||||||
mtoLoad: ["customer", "project", "contact", "contract", "plant","letterhead"],
|
mtoLoad: ["customer", "project", "contact", "contract", "plant","letterhead","createddocument"],
|
||||||
mtmLoad: ["statementallocations","files"],
|
mtmLoad: ["statementallocations","files","createddocuments"],
|
||||||
mtmListLoad: ["statementallocations"],
|
mtmListLoad: ["statementallocations"],
|
||||||
},
|
},
|
||||||
texttemplates: {
|
texttemplates: {
|
||||||
|
|||||||
Reference in New Issue
Block a user