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
+5
View File
@@ -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