Redesign products list and form to match catalog mockups.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -504,9 +504,18 @@ model Product {
|
||||
id String @id @default(cuid())
|
||||
organizationId String
|
||||
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)
|
||||
/// product | service
|
||||
kind String @default("product")
|
||||
name String
|
||||
sku String?
|
||||
description String?
|
||||
category String?
|
||||
unit String? @default("عدد")
|
||||
stockQty Int?
|
||||
brand String?
|
||||
model String?
|
||||
country String?
|
||||
tags String[] @default([])
|
||||
unitPrice Decimal? @db.Decimal(18, 2)
|
||||
currency String @default("IRR")
|
||||
isActive Boolean @default(true)
|
||||
@@ -518,6 +527,7 @@ model Product {
|
||||
|
||||
@@index([organizationId, name])
|
||||
@@index([organizationId, isActive])
|
||||
@@index([organizationId, category])
|
||||
}
|
||||
|
||||
model DealLineItem {
|
||||
|
||||
Reference in New Issue
Block a user