feat: store and enforce per-product payment and check limits

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-16 09:25:43 +03:30
co-authored by Cursor
parent 13f87fdae3
commit ddc1c3024a
11 changed files with 382 additions and 18 deletions
@@ -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;