Add account balance claims board with opt-in module and range settings.
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -164,6 +164,10 @@ model Organization {
|
||||
enabledModules String[] @default([])
|
||||
/// برچسب/رنگ اولویت فعالیت و روتین (کلیدهای enum ثابت؛ فقط ظاهر)
|
||||
activityPriorities Json @default("{}")
|
||||
/// تنظیم محدوده مانده حساب برای کاریز مطالبات
|
||||
accountBalanceSettings Json @default("{}")
|
||||
/// آخرین اسلات اجرای جاب مطالبات مانده (YYYY-MM-DD-HH تهران)
|
||||
accountBalanceClaimsLastSlot String?
|
||||
/// قالبهای آمادهٔ پیامک دستی ([{ id, name, body }, …])
|
||||
smsTemplates Json @default("[]")
|
||||
/// تاریخ قطع بایگانی اطلاعات قبل (شروع روز انتخابشده)؛ null = بدون فیلتر
|
||||
@@ -583,6 +587,8 @@ model CustomerGroup {
|
||||
companies CompanyGroupLink[]
|
||||
/// مسئولان گروه — اختیاری؛ اعضای گروه را مثل مشتریان خود میبینند
|
||||
assignees User[] @relation("CustomerGroupAssignees")
|
||||
/// ترتیب انتخاب مسئولان در فرم (اولین = مسئول اصلی مطالبات)
|
||||
assigneeIds String[] @default([])
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@ -813,6 +819,8 @@ model ActivityBoard {
|
||||
organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)
|
||||
name String
|
||||
isDefault Boolean @default(false)
|
||||
/// مثلاً balance_claims — گروه سیستمی
|
||||
systemKey String?
|
||||
position Int @default(0)
|
||||
stages ActivityStage[]
|
||||
activities Activity[]
|
||||
@@ -821,6 +829,7 @@ model ActivityBoard {
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@unique([organizationId, name])
|
||||
@@unique([organizationId, systemKey])
|
||||
@@index([organizationId, position])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user