feat: store and enforce per-product payment and check limits
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- سقف مدت چک و روشهای پرداخت مجاز برای هر محصول
|
||||
ALTER TABLE "Product" ADD COLUMN "maxCheckMonths" INTEGER NOT NULL DEFAULT 4;
|
||||
ALTER TABLE "Product" ADD COLUMN "allowCash" BOOLEAN NOT NULL DEFAULT true;
|
||||
ALTER TABLE "Product" ADD COLUMN "allowCashCheck" BOOLEAN NOT NULL DEFAULT true;
|
||||
ALTER TABLE "Product" ADD COLUMN "allowCheck" BOOLEAN NOT NULL DEFAULT true;
|
||||
@@ -241,6 +241,11 @@ model Product {
|
||||
subtitle String?
|
||||
rollMeters Float @default(50)
|
||||
isNew Boolean @default(false)
|
||||
/// حداکثر مدت چک برای این محصول (ماه)
|
||||
maxCheckMonths Int @default(4)
|
||||
allowCash Boolean @default(true)
|
||||
allowCashCheck Boolean @default(true)
|
||||
allowCheck Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
|
||||
+7
-3
File diff suppressed because one or more lines are too long
+148
-9
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user