This commit is contained in:
2026-02-04 13:49:07 +03:30
parent 5fd6611aca
commit de14d531e1
222 changed files with 7053 additions and 57956 deletions
+31
View File
@@ -0,0 +1,31 @@
model Good {
id Int @id @default(autoincrement())
name String @db.VarChar(255)
description String? @db.Text
sku String @db.VarChar(100)
localSku String @unique() @db.VarChar(100)
barcode String? @unique() @db.VarChar(100)
createdAt DateTime @default(now()) @db.Timestamp(0)
updatedAt DateTime @updatedAt @db.Timestamp(0)
deletedAt DateTime? @db.Timestamp(0)
categoryId Int?
baseSalePrice Decimal @default(0.00) @db.Decimal(15, 0)
category GoodCategory? @relation(fields: [categoryId], references: [id])
salesInvoiceItems SalesInvoiceItem[]
@@index([categoryId])
@@map("Goods")
}
model GoodCategory {
id Int @id @default(autoincrement())
name String @db.VarChar(100)
description String? @db.Text
imageUrl String? @db.VarChar(255)
createdAt DateTime @default(now()) @db.Timestamp(0)
updatedAt DateTime @updatedAt @db.Timestamp(0)
deletedAt DateTime? @db.Timestamp(0)
goods Good[]
@@map("Good_categories")
}