cloud-ide-model-schema 1.1.149 → 1.1.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/lib/schema/accounts/acc_financial_config.js +5 -0
  2. package/lib/schema/app/app_build_config_mst.d.ts +8 -0
  3. package/lib/schema/app/app_build_config_mst.js +64 -0
  4. package/lib/schema/app/app_platform_link_mst.d.ts +8 -0
  5. package/lib/schema/app/app_platform_link_mst.js +96 -0
  6. package/lib/schema/app/app_publish_details_mst.d.ts +8 -0
  7. package/lib/schema/app/app_publish_details_mst.js +250 -0
  8. package/lib/schema/app/app_registration_mst.d.ts +8 -0
  9. package/lib/schema/app/app_registration_mst.js +84 -0
  10. package/lib/schema/app/app_registration_start_mst.d.ts +8 -0
  11. package/lib/schema/app/app_registration_start_mst.js +55 -0
  12. package/lib/schema/app/app_rollout_config_mst.d.ts +8 -0
  13. package/lib/schema/app/app_rollout_config_mst.js +71 -0
  14. package/lib/schema/app/app_store_provider_mst.d.ts +8 -0
  15. package/lib/schema/app/app_store_provider_mst.js +69 -0
  16. package/lib/schema/app/app_update_changelog_mst.d.ts +8 -0
  17. package/lib/schema/app/app_update_changelog_mst.js +71 -0
  18. package/lib/schema/app/app_update_deployment_mst.d.ts +8 -0
  19. package/lib/schema/app/app_update_deployment_mst.js +90 -0
  20. package/lib/schema/app/app_update_statistics_mst.d.ts +8 -0
  21. package/lib/schema/app/app_update_statistics_mst.js +87 -0
  22. package/lib/schema/app/app_user_update_status_mst.d.ts +8 -0
  23. package/lib/schema/app/app_user_update_status_mst.js +97 -0
  24. package/lib/schema/app/app_version_mst.d.ts +8 -0
  25. package/lib/schema/app/app_version_mst.js +129 -0
  26. package/lib/schema/app/index.d.ts +37 -0
  27. package/lib/schema/app/index.js +27 -0
  28. package/lib/schema/core/core_financial_config.js +5 -0
  29. package/lib/schema/index.d.ts +1 -0
  30. package/lib/schema/index.js +1 -0
  31. package/package.json +2 -2
@@ -73,6 +73,11 @@ var acc_financial_config = new mongoose_1.Schema({
73
73
  default: "fiscal_year",
74
74
  comment: "How financial year is named"
75
75
  },
76
+ accfincfg_is_self_financial_year: {
77
+ type: Boolean,
78
+ default: true,
79
+ comment: "If true, entity has its own financial year. If false, follows parent entity's financial year."
80
+ },
76
81
  // TAX CONFIGURATION
77
82
  accfincfg_default_tax_percentage: {
78
83
  type: Number,
@@ -0,0 +1,8 @@
1
+ import { IAppBuildConfigMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppBuildConfigMst: mongoose.Model<IAppBuildConfigMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppBuildConfigMst, {}> & IAppBuildConfigMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppBuildConfigMst };
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppBuildConfigMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_build_config_mst = new mongoose_1.Schema({
7
+ appbuild_reg_id_appreg: {
8
+ type: mongoose_1.default.Schema.Types.ObjectId,
9
+ ref: "app_registration_mst",
10
+ required: true,
11
+ comment: "FK to app_registration_mst - Reference to app registration"
12
+ },
13
+ appbuild_link_id_applink: {
14
+ type: mongoose_1.default.Schema.Types.ObjectId,
15
+ ref: "app_platform_link_mst",
16
+ required: true,
17
+ comment: "FK to app_platform_link_mst - Reference to platform link"
18
+ },
19
+ appbuild_platform_id_sygms: {
20
+ type: mongoose_1.default.Schema.Types.ObjectId,
21
+ ref: "core_general_master",
22
+ required: true,
23
+ comment: "FK to core_general_master - Platform type (APP_PLATFORM)"
24
+ },
25
+ appbuild_build_type_id_sygms: {
26
+ type: mongoose_1.default.Schema.Types.ObjectId,
27
+ ref: "core_general_master",
28
+ required: true,
29
+ comment: "FK to core_general_master - Build type (APP_BUILD_TYPE)"
30
+ },
31
+ appbuild_config_data: {
32
+ type: mongoose_1.Schema.Types.Mixed,
33
+ comment: "JSON object - Build configuration (signing_config, build_settings, environment_variables, feature_flags)"
34
+ },
35
+ appbuild_is_active: {
36
+ type: Boolean,
37
+ default: true,
38
+ comment: "Is active build configuration"
39
+ },
40
+ appbuild_created_by_id_auth: {
41
+ type: mongoose_1.default.Schema.Types.ObjectId,
42
+ ref: "auth_user_mst",
43
+ required: true,
44
+ comment: "FK to auth_user_mst - User who created"
45
+ },
46
+ appbuild_created_at: {
47
+ type: Date,
48
+ default: Date.now,
49
+ comment: "Creation timestamp"
50
+ },
51
+ appbuild_updated_at: {
52
+ type: Date,
53
+ default: Date.now,
54
+ comment: "Last update timestamp"
55
+ }
56
+ }, { collection: 'app_build_config_mst', timestamps: { createdAt: 'appbuild_created_at', updatedAt: 'appbuild_updated_at' } });
57
+ // Indexes for performance optimization
58
+ app_build_config_mst.index({ appbuild_link_id_applink: 1, appbuild_build_type_id_sygms: 1 });
59
+ app_build_config_mst.index({ appbuild_reg_id_appreg: 1 });
60
+ app_build_config_mst.index({ appbuild_platform_id_sygms: 1 });
61
+ app_build_config_mst.index({ appbuild_build_type_id_sygms: 1 });
62
+ app_build_config_mst.index({ appbuild_is_active: 1 });
63
+ var CAppBuildConfigMst = mongoose_1.default.model("app_build_config_mst", app_build_config_mst);
64
+ exports.CAppBuildConfigMst = CAppBuildConfigMst;
@@ -0,0 +1,8 @@
1
+ import { IAppPlatformLinkMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppPlatformLinkMst: mongoose.Model<IAppPlatformLinkMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppPlatformLinkMst, {}> & IAppPlatformLinkMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppPlatformLinkMst };
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppPlatformLinkMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_platform_link_mst = new mongoose_1.Schema({
7
+ applink_reg_id_appreg: {
8
+ type: mongoose_1.default.Schema.Types.ObjectId,
9
+ ref: "app_registration_mst",
10
+ required: true,
11
+ comment: "FK to app_registration_mst - Reference to app registration"
12
+ },
13
+ applink_store_provider_id_appstore: {
14
+ type: mongoose_1.default.Schema.Types.ObjectId,
15
+ ref: "app_store_provider_mst",
16
+ required: true,
17
+ comment: "FK to app_store_provider_mst - Reference to store provider"
18
+ },
19
+ applink_platform_id_sygms: {
20
+ type: mongoose_1.default.Schema.Types.ObjectId,
21
+ ref: "core_general_master",
22
+ required: true,
23
+ comment: "FK to core_general_master - Platform type (APP_PLATFORM: 'ios', 'android', 'web')"
24
+ },
25
+ applink_link_status_id_sygms: {
26
+ type: mongoose_1.default.Schema.Types.ObjectId,
27
+ ref: "core_general_master",
28
+ required: true,
29
+ comment: "FK to core_general_master - Link status (APP_LINK_STATUS)"
30
+ },
31
+ applink_workflow_id_wfrg: {
32
+ type: mongoose_1.default.Schema.Types.ObjectId,
33
+ ref: "core_workflow_registry",
34
+ comment: "FK to core_workflow_registry - Workflow for platform linking approval (optional)"
35
+ },
36
+ applink_current_step: {
37
+ type: Number,
38
+ comment: "Current workflow step (if workflow is active)"
39
+ },
40
+ applink_platform_app_id: {
41
+ type: String,
42
+ required: true,
43
+ maxlength: 200,
44
+ trim: true,
45
+ comment: "Bundle ID (iOS), Package Name (Android), or Domain/Project ID (Web)"
46
+ },
47
+ applink_store_app_id: {
48
+ type: String,
49
+ maxlength: 200,
50
+ trim: true,
51
+ comment: "App ID in the store/platform (if already published)"
52
+ },
53
+ applink_platform_config: {
54
+ type: mongoose_1.Schema.Types.Mixed,
55
+ comment: "JSON object - Platform-specific configuration (ios_config, android_config, web_config, general_config)"
56
+ },
57
+ applink_platform_api_config: {
58
+ type: mongoose_1.Schema.Types.Mixed,
59
+ comment: "JSON object - Platform API credentials and configuration for single-click deployment"
60
+ },
61
+ applink_linked_by_id_auth: {
62
+ type: mongoose_1.default.Schema.Types.ObjectId,
63
+ ref: "auth_user_mst",
64
+ required: true,
65
+ comment: "FK to auth_user_mst - User who linked the platform"
66
+ },
67
+ applink_linked_at: {
68
+ type: Date,
69
+ required: true,
70
+ default: Date.now,
71
+ comment: "Date when platform was linked"
72
+ },
73
+ applink_unlinked_at: {
74
+ type: Date,
75
+ comment: "Date when platform was unlinked"
76
+ },
77
+ applink_created_at: {
78
+ type: Date,
79
+ default: Date.now,
80
+ comment: "Creation timestamp"
81
+ },
82
+ applink_updated_at: {
83
+ type: Date,
84
+ default: Date.now,
85
+ comment: "Last update timestamp"
86
+ }
87
+ }, { collection: 'app_platform_link_mst', timestamps: { createdAt: 'applink_created_at', updatedAt: 'applink_updated_at' } });
88
+ // Indexes for performance optimization
89
+ app_platform_link_mst.index({ applink_reg_id_appreg: 1, applink_store_provider_id_appstore: 1 }, { unique: true });
90
+ app_platform_link_mst.index({ applink_platform_id_sygms: 1 });
91
+ app_platform_link_mst.index({ applink_link_status_id_sygms: 1 });
92
+ app_platform_link_mst.index({ applink_store_provider_id_appstore: 1 });
93
+ app_platform_link_mst.index({ applink_workflow_id_wfrg: 1, applink_current_step: 1 });
94
+ app_platform_link_mst.index({ applink_platform_app_id: 1 });
95
+ var CAppPlatformLinkMst = mongoose_1.default.model("app_platform_link_mst", app_platform_link_mst);
96
+ exports.CAppPlatformLinkMst = CAppPlatformLinkMst;
@@ -0,0 +1,8 @@
1
+ import { IAppPublishDetailsMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppPublishDetailsMst: mongoose.Model<IAppPublishDetailsMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppPublishDetailsMst, {}> & IAppPublishDetailsMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppPublishDetailsMst };
@@ -0,0 +1,250 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppPublishDetailsMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_publish_details_mst = new mongoose_1.Schema({
7
+ apppub_reg_id_appreg: {
8
+ type: mongoose_1.default.Schema.Types.ObjectId,
9
+ ref: "app_registration_mst",
10
+ required: true,
11
+ comment: "FK to app_registration_mst - Reference to app registration"
12
+ },
13
+ apppub_link_id_applink: {
14
+ type: mongoose_1.default.Schema.Types.ObjectId,
15
+ ref: "app_platform_link_mst",
16
+ required: true,
17
+ comment: "FK to app_platform_link_mst - Reference to platform link"
18
+ },
19
+ apppub_version_id_appver: {
20
+ type: mongoose_1.default.Schema.Types.ObjectId,
21
+ ref: "app_version_mst",
22
+ required: true,
23
+ comment: "FK to app_version_mst - Reference to app version"
24
+ },
25
+ apppub_store_provider_id_appstore: {
26
+ type: mongoose_1.default.Schema.Types.ObjectId,
27
+ ref: "app_store_provider_mst",
28
+ required: true,
29
+ comment: "FK to app_store_provider_mst - Reference to store provider"
30
+ },
31
+ apppub_platform_id_sygms: {
32
+ type: mongoose_1.default.Schema.Types.ObjectId,
33
+ ref: "core_general_master",
34
+ required: true,
35
+ comment: "FK to core_general_master - Platform type (APP_PLATFORM)"
36
+ },
37
+ apppub_store_version_number: {
38
+ type: String,
39
+ required: true,
40
+ maxlength: 50,
41
+ trim: true,
42
+ comment: "Version number for this store (e.g., '1.0.0' for App Store, '1.0.1' for Play Store)"
43
+ },
44
+ apppub_store_version_code: {
45
+ type: Number,
46
+ comment: "Version code for this store (Android)"
47
+ },
48
+ apppub_store_build_number: {
49
+ type: String,
50
+ maxlength: 50,
51
+ trim: true,
52
+ comment: "Build number for this store"
53
+ },
54
+ apppub_publish_type_id_sygms: {
55
+ type: mongoose_1.default.Schema.Types.ObjectId,
56
+ ref: "core_general_master",
57
+ required: true,
58
+ comment: "FK to core_general_master - Publish type (APP_PUBLISH_TYPE)"
59
+ },
60
+ apppub_publish_status_id_sygms: {
61
+ type: mongoose_1.default.Schema.Types.ObjectId,
62
+ ref: "core_general_master",
63
+ required: true,
64
+ comment: "FK to core_general_master - Publish status (APP_PUBLISH_STATUS)"
65
+ },
66
+ apppub_workflow_id_wfrg: {
67
+ type: mongoose_1.default.Schema.Types.ObjectId,
68
+ ref: "core_workflow_registry",
69
+ comment: "FK to core_workflow_registry - Workflow for publish approval (optional, recommended for production)"
70
+ },
71
+ apppub_current_step: {
72
+ type: Number,
73
+ comment: "Current workflow step (if workflow is active)"
74
+ },
75
+ apppub_store_app_id: {
76
+ type: String,
77
+ maxlength: 200,
78
+ trim: true,
79
+ comment: "App ID in this store"
80
+ },
81
+ apppub_store_listing_id: {
82
+ type: String,
83
+ maxlength: 200,
84
+ trim: true,
85
+ comment: "Listing ID if multiple listings"
86
+ },
87
+ apppub_store_url: {
88
+ type: String,
89
+ maxlength: 500,
90
+ trim: true,
91
+ comment: "Store URL"
92
+ },
93
+ apppub_release_notes: {
94
+ type: String,
95
+ maxlength: 5000,
96
+ trim: true,
97
+ comment: "Store-specific release notes"
98
+ },
99
+ apppub_promotional_text: {
100
+ type: String,
101
+ maxlength: 500,
102
+ trim: true,
103
+ comment: "Promotional text"
104
+ },
105
+ apppub_product_description: {
106
+ type: String,
107
+ maxlength: 5000,
108
+ trim: true,
109
+ comment: "Product/app description for store"
110
+ },
111
+ apppub_category_ids_sygms: {
112
+ type: [mongoose_1.default.Schema.Types.ObjectId],
113
+ ref: "core_general_master",
114
+ comment: "Array of FK to core_general_master - App categories (APP_APP_CATEGORY)"
115
+ },
116
+ apppub_preview_image_ids_cyfm: {
117
+ type: [mongoose_1.default.Schema.Types.ObjectId],
118
+ ref: "core_file_manager",
119
+ comment: "Array of FK to core_file_manager - Preview images"
120
+ },
121
+ apppub_screenshot_ids_cyfm: {
122
+ type: [mongoose_1.default.Schema.Types.ObjectId],
123
+ ref: "core_file_manager",
124
+ comment: "Array of FK to core_file_manager - Screenshots"
125
+ },
126
+ apppub_feature_image_id_cyfm: {
127
+ type: mongoose_1.default.Schema.Types.ObjectId,
128
+ ref: "core_file_manager",
129
+ comment: "FK to core_file_manager - Feature/preview image"
130
+ },
131
+ apppub_promo_image_id_cyfm: {
132
+ type: mongoose_1.default.Schema.Types.ObjectId,
133
+ ref: "core_file_manager",
134
+ comment: "FK to core_file_manager - Promotional image"
135
+ },
136
+ apppub_icon_file_id_cyfm: {
137
+ type: mongoose_1.default.Schema.Types.ObjectId,
138
+ ref: "core_file_manager",
139
+ comment: "FK to core_file_manager - App icon for store"
140
+ },
141
+ apppub_keywords: {
142
+ type: [String],
143
+ comment: "Keywords for search"
144
+ },
145
+ apppub_tags: {
146
+ type: [String],
147
+ comment: "Tags"
148
+ },
149
+ apppub_pricing_info: {
150
+ type: mongoose_1.Schema.Types.Mixed,
151
+ comment: "JSON object - Pricing details"
152
+ },
153
+ apppub_availability_info: {
154
+ type: mongoose_1.Schema.Types.Mixed,
155
+ comment: "JSON object - Availability/regions"
156
+ },
157
+ apppub_store_specific_data: {
158
+ type: mongoose_1.Schema.Types.Mixed,
159
+ comment: "JSON object - Any other store-specific fields"
160
+ },
161
+ apppub_deployment_method_id_sygms: {
162
+ type: mongoose_1.default.Schema.Types.ObjectId,
163
+ ref: "core_general_master",
164
+ comment: "FK to core_general_master - Deployment method (APP_DEPLOYMENT_METHOD)"
165
+ },
166
+ apppub_auto_deploy_enabled: {
167
+ type: Boolean,
168
+ default: false,
169
+ comment: "Enable automatic deployment via API when version is approved"
170
+ },
171
+ apppub_deployment_api_response: {
172
+ type: mongoose_1.Schema.Types.Mixed,
173
+ comment: "JSON object - Response from platform API after deployment"
174
+ },
175
+ apppub_deployment_url: {
176
+ type: String,
177
+ maxlength: 500,
178
+ trim: true,
179
+ comment: "URL of deployed app (for web apps: Vercel/Netlify URL)"
180
+ },
181
+ apppub_deployment_log: {
182
+ type: String,
183
+ comment: "Deployment log/output from platform API"
184
+ },
185
+ apppub_submitted_at: {
186
+ type: Date,
187
+ comment: "Date when publish was submitted"
188
+ },
189
+ apppub_review_started_at: {
190
+ type: Date,
191
+ comment: "Date when review started"
192
+ },
193
+ apppub_approved_at: {
194
+ type: Date,
195
+ comment: "Date when publish was approved"
196
+ },
197
+ apppub_published_at: {
198
+ type: Date,
199
+ comment: "Date when publish was published"
200
+ },
201
+ apppub_deployed_at: {
202
+ type: Date,
203
+ comment: "When deployment was completed via API"
204
+ },
205
+ apppub_deployment_started_at: {
206
+ type: Date,
207
+ comment: "When deployment started via API"
208
+ },
209
+ apppub_removed_at: {
210
+ type: Date,
211
+ comment: "Date when publish was removed"
212
+ },
213
+ apppub_rejection_reason: {
214
+ type: String,
215
+ maxlength: 1000,
216
+ trim: true,
217
+ comment: "Rejection reason"
218
+ },
219
+ apppub_rejection_details: {
220
+ type: mongoose_1.Schema.Types.Mixed,
221
+ comment: "JSON object with detailed rejection info"
222
+ },
223
+ apppub_published_by_id_auth: {
224
+ type: mongoose_1.default.Schema.Types.ObjectId,
225
+ ref: "auth_user_mst",
226
+ required: true,
227
+ comment: "FK to auth_user_mst - User who published"
228
+ },
229
+ apppub_created_at: {
230
+ type: Date,
231
+ default: Date.now,
232
+ comment: "Creation timestamp"
233
+ },
234
+ apppub_updated_at: {
235
+ type: Date,
236
+ default: Date.now,
237
+ comment: "Last update timestamp"
238
+ }
239
+ }, { collection: 'app_publish_details_mst', timestamps: { createdAt: 'apppub_created_at', updatedAt: 'apppub_updated_at' } });
240
+ // Indexes for performance optimization
241
+ app_publish_details_mst.index({ apppub_link_id_applink: 1, apppub_version_id_appver: 1 }, { unique: true });
242
+ app_publish_details_mst.index({ apppub_reg_id_appreg: 1 });
243
+ app_publish_details_mst.index({ apppub_link_id_applink: 1 });
244
+ app_publish_details_mst.index({ apppub_version_id_appver: 1 });
245
+ app_publish_details_mst.index({ apppub_store_provider_id_appstore: 1 });
246
+ app_publish_details_mst.index({ apppub_platform_id_sygms: 1 });
247
+ app_publish_details_mst.index({ apppub_publish_status_id_sygms: 1 });
248
+ app_publish_details_mst.index({ apppub_workflow_id_wfrg: 1, apppub_current_step: 1 });
249
+ var CAppPublishDetailsMst = mongoose_1.default.model("app_publish_details_mst", app_publish_details_mst);
250
+ exports.CAppPublishDetailsMst = CAppPublishDetailsMst;
@@ -0,0 +1,8 @@
1
+ import { IAppRegistrationMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppRegistrationMst: mongoose.Model<IAppRegistrationMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppRegistrationMst, {}> & IAppRegistrationMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppRegistrationMst };
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppRegistrationMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_registration_mst = new mongoose_1.Schema({
7
+ appreg_app_id: {
8
+ type: String,
9
+ required: true,
10
+ unique: true,
11
+ maxlength: 100,
12
+ trim: true,
13
+ comment: "Unique app identifier (com.company.app or my-web-app-id) - unique across all apps"
14
+ },
15
+ appreg_app_name: {
16
+ type: String,
17
+ required: true,
18
+ maxlength: 200,
19
+ trim: true,
20
+ comment: "App display name"
21
+ },
22
+ appreg_app_description: {
23
+ type: String,
24
+ maxlength: 1000,
25
+ trim: true,
26
+ comment: "App description"
27
+ },
28
+ appreg_organization_name: {
29
+ type: String,
30
+ maxlength: 200,
31
+ trim: true,
32
+ comment: "Organization name"
33
+ },
34
+ appreg_organization_id: {
35
+ type: String,
36
+ maxlength: 100,
37
+ trim: true,
38
+ comment: "Organization identifier"
39
+ },
40
+ appreg_registration_date: {
41
+ type: Date,
42
+ required: true,
43
+ default: Date.now,
44
+ comment: "Registration date"
45
+ },
46
+ appreg_registration_status_id_sygms: {
47
+ type: mongoose_1.default.Schema.Types.ObjectId,
48
+ ref: "core_general_master",
49
+ required: true,
50
+ comment: "FK to core_general_master - Registration status (APP_REG_STATUS)"
51
+ },
52
+ appreg_registered_by_id_auth: {
53
+ type: mongoose_1.default.Schema.Types.ObjectId,
54
+ ref: "auth_user_mst",
55
+ required: true,
56
+ comment: "FK to auth_user_mst - User who registered"
57
+ },
58
+ appreg_workflow_id_wfrg: {
59
+ type: mongoose_1.default.Schema.Types.ObjectId,
60
+ ref: "core_workflow_registry",
61
+ comment: "FK to core_workflow_registry - Workflow for registration approval (optional)"
62
+ },
63
+ appreg_current_step: {
64
+ type: Number,
65
+ comment: "Current workflow step (if workflow is active)"
66
+ },
67
+ appreg_created_at: {
68
+ type: Date,
69
+ default: Date.now,
70
+ comment: "Creation timestamp"
71
+ },
72
+ appreg_updated_at: {
73
+ type: Date,
74
+ default: Date.now,
75
+ comment: "Last update timestamp"
76
+ }
77
+ }, { collection: 'app_registration_mst', timestamps: { createdAt: 'appreg_created_at', updatedAt: 'appreg_updated_at' } });
78
+ // Indexes for performance optimization
79
+ app_registration_mst.index({ appreg_app_id: 1 }, { unique: true });
80
+ app_registration_mst.index({ appreg_registration_status_id_sygms: 1 });
81
+ app_registration_mst.index({ appreg_registered_by_id_auth: 1 });
82
+ app_registration_mst.index({ appreg_workflow_id_wfrg: 1, appreg_current_step: 1 });
83
+ var CAppRegistrationMst = mongoose_1.default.model("app_registration_mst", app_registration_mst);
84
+ exports.CAppRegistrationMst = CAppRegistrationMst;
@@ -0,0 +1,8 @@
1
+ import { IAppRegistrationStartMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppRegistrationStartMst: mongoose.Model<IAppRegistrationStartMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppRegistrationStartMst, {}> & IAppRegistrationStartMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppRegistrationStartMst };
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppRegistrationStartMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_registration_start_mst = new mongoose_1.Schema({
7
+ appstart_reg_id_appreg: {
8
+ type: mongoose_1.default.Schema.Types.ObjectId,
9
+ ref: "app_registration_mst",
10
+ required: true,
11
+ comment: "FK to app_registration_mst - Reference to registration"
12
+ },
13
+ appstart_start_date: {
14
+ type: Date,
15
+ required: true,
16
+ default: Date.now,
17
+ comment: "Start date"
18
+ },
19
+ appstart_configuration_data: {
20
+ type: mongoose_1.Schema.Types.Mixed,
21
+ comment: "JSON object - General app configuration (icon_file_id_cyfm, splash_screen_file_id_cyfm, default_version, app_description, general_settings)"
22
+ },
23
+ appstart_start_status_id_sygms: {
24
+ type: mongoose_1.default.Schema.Types.ObjectId,
25
+ ref: "core_general_master",
26
+ required: true,
27
+ comment: "FK to core_general_master - Start status (APP_START_STATUS)"
28
+ },
29
+ appstart_started_by_id_auth: {
30
+ type: mongoose_1.default.Schema.Types.ObjectId,
31
+ ref: "auth_user_mst",
32
+ required: true,
33
+ comment: "FK to auth_user_mst - User who started"
34
+ },
35
+ appstart_completed_at: {
36
+ type: Date,
37
+ comment: "Date when registration start was completed"
38
+ },
39
+ appstart_created_at: {
40
+ type: Date,
41
+ default: Date.now,
42
+ comment: "Creation timestamp"
43
+ },
44
+ appstart_updated_at: {
45
+ type: Date,
46
+ default: Date.now,
47
+ comment: "Last update timestamp"
48
+ }
49
+ }, { collection: 'app_registration_start_mst', timestamps: { createdAt: 'appstart_created_at', updatedAt: 'appstart_updated_at' } });
50
+ // Indexes for performance optimization
51
+ app_registration_start_mst.index({ appstart_reg_id_appreg: 1 });
52
+ app_registration_start_mst.index({ appstart_start_status_id_sygms: 1 });
53
+ app_registration_start_mst.index({ appstart_started_by_id_auth: 1 });
54
+ var CAppRegistrationStartMst = mongoose_1.default.model("app_registration_start_mst", app_registration_start_mst);
55
+ exports.CAppRegistrationStartMst = CAppRegistrationStartMst;
@@ -0,0 +1,8 @@
1
+ import { IAppRolloutConfigMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppRolloutConfigMst: mongoose.Model<IAppRolloutConfigMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppRolloutConfigMst, {}> & IAppRolloutConfigMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppRolloutConfigMst };