db changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user