Add catalog product type settings

This commit is contained in:
Ruslan Bakiev
2026-04-09 16:03:32 +07:00
parent da31e21406
commit 2cd8d0b612
4 changed files with 171 additions and 0 deletions

View File

@@ -190,6 +190,20 @@ model Product {
updatedAt DateTime @updatedAt
}
model CatalogProductTypeSetting {
id String @id @default(cuid())
productType String @unique
showQuantityPerBox Boolean @default(false)
allowCustomLength Boolean @default(false)
customLengthMinM Int?
customLengthMaxM Int?
customLengthStepM Int?
allowCustomSleeveBrand Boolean @default(false)
allowCustomLabel Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Cart {
id String @id @default(cuid())
userId String @unique