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
+30
View File
@@ -0,0 +1,30 @@
model Service {
id Int @id @default(autoincrement())
name String @db.VarChar(255)
description String? @db.Text
sku 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 ServiceCategory? @relation(fields: [categoryId], references: [id])
salesInvoiceItems SalesInvoiceItem[]
@@index([categoryId])
@@map("Services")
}
model ServiceCategory {
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)
services Service[]
@@map("Service_categories")
}