This commit is contained in:
Your Name committed 2026-07-19 06:37:42 -04:00
1 parent 913cbef765
commit 173c583787
22 files changed
+2847 -364

No files matched your search

+17
View File
@@ -67,6 +67,7 @@ model Product {
images ProductImage[]
attributes ProductAttribute[]
reviews Review[]
detailSections ProductDetailSection[]
translations ProductTranslation[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@ -631,6 +632,22 @@ model PageSection {
updatedAt DateTime @updatedAt
}
model ProductDetailSection {
id Int @id @default(autoincrement())
productId Int
product Product @relation(fields: [productId], references: [id], onDelete: Cascade)
type String
order Int
payload Json
isActive Boolean @default(true)
isLocked Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([productId, order])
@@index([productId, isActive])
}
model NewsletterSubscription {
id Int @id @default(autoincrement())
email String @unique