feat(tenants): store Khanegi deploy settings snapshot on tenants.setting

Import can_edit=0 settings via the sold version's admin login + get_settings, for Super Admin program-settings UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-17 15:02:22 +03:30
co-authored by Cursor
parent 48649a6a79
commit f2cf8c9035
8 changed files with 457 additions and 2 deletions
+2
View File
@@ -69,6 +69,8 @@ model Tenant {
/// Legacy cache from older sync attempts — SuperAdmin SMS account is now source of truth
smsSettingsCache Json? @map("sms_settings_cache")
smsSyncedAt DateTime? @map("sms_synced_at")
/// Khanegi deploy settings snapshot (can_edit=0) imported via admin login + get_settings.
setting Json?
/// Full Khanegi UI JSON (theme, navigation, pages). Hamkar: unused for now.
appUiConfig Json? @map("app_ui_config")
/// Khanegi only: which appearance editor / get_user payload shape to use.