From 8f0efc0d7283d2c93b3ed01c512f2612f5a1d3f5 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Mon, 8 Dec 2025 11:45:37 +0100 Subject: [PATCH] schema changes --- db/schema/statementallocations.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/db/schema/statementallocations.ts b/db/schema/statementallocations.ts index 9a5d27f..c0db9bc 100644 --- a/db/schema/statementallocations.ts +++ b/db/schema/statementallocations.ts @@ -23,15 +23,15 @@ export const statementallocations = pgTable("statementallocations", { id: uuid("id").primaryKey().defaultRandom(), // foreign keys - bs_id: integer("bs_id") + bankstatement: integer("bs_id") .notNull() .references(() => bankstatements.id), - cd_id: integer("cd_id").references(() => createddocuments.id), + createddocument: integer("cd_id").references(() => createddocuments.id), amount: doublePrecision("amount").notNull().default(0), - ii_id: bigint("ii_id", { mode: "number" }).references( + incominginvoice: bigint("ii_id", { mode: "number" }).references( () => incominginvoices.id ), @@ -43,7 +43,7 @@ export const statementallocations = pgTable("statementallocations", { () => accounts.id ), - createdAt: timestamp("created_at", { + created_at: timestamp("created_at", { withTimezone: false, }).defaultNow(), @@ -57,9 +57,9 @@ export const statementallocations = pgTable("statementallocations", { vendor: bigint("vendor", { mode: "number" }).references(() => vendors.id), - updatedAt: timestamp("updated_at", { withTimezone: true }), + updated_at: timestamp("updated_at", { withTimezone: true }), - updatedBy: uuid("updated_by").references(() => authUsers.id), + updated_by: uuid("updated_by").references(() => authUsers.id), archived: boolean("archived").notNull().default(false), })