db changes

This commit is contained in:
2025-12-07 17:11:26 +01:00
parent 0f3c8c862f
commit 76e40cd9e1
6 changed files with 27 additions and 27 deletions

View File

@@ -40,16 +40,16 @@ export const products = pgTable("products", {
ean: text("ean"),
barcode: text("barcode"),
purchasePrice: doublePrecision("purchasePrice"),
sellingPrice: doublePrecision("sellingPrice"),
purchase_price: doublePrecision("purchasePrice"),
selling_price: doublePrecision("sellingPrice"),
description: text("description"),
manufacturerNumber: text("manufacturerNumber"),
manufacturer_number: text("manufacturerNumber"),
vendorAllocation: jsonb("vendorAllocation").default([]),
vendor_allocation: jsonb("vendorAllocation").default([]),
articleNumber: text("articleNumber"),
article_number: text("articleNumber"),
barcodes: text("barcodes").array().notNull().default([]),
@@ -57,12 +57,12 @@ export const products = pgTable("products", {
archived: boolean("archived").notNull().default(false),
taxPercentage: smallint("taxPercentage").notNull().default(19),
tax_percentage: smallint("taxPercentage").notNull().default(19),
markupPercentage: doublePrecision("markupPercentage"),
markup_percentage: doublePrecision("markupPercentage"),
updatedAt: timestamp("updated_at", { withTimezone: true }),
updatedBy: uuid("updated_by").references(() => authUsers.id),
updated_at: timestamp("updated_at", { withTimezone: true }),
updated_by: uuid("updated_by").references(() => authUsers.id),
})
export type Product = typeof products.$inferSelect