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
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppRolloutConfigMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_rollout_config_mst = new mongoose_1.Schema({
7
+ approll_version_id_appver: {
8
+ type: mongoose_1.default.Schema.Types.ObjectId,
9
+ ref: "app_version_mst",
10
+ required: true,
11
+ comment: "FK to app_version_mst - Reference to app version"
12
+ },
13
+ approll_rollout_phases: [{
14
+ phase_number: {
15
+ type: Number,
16
+ required: true,
17
+ comment: "Phase number"
18
+ },
19
+ percentage: {
20
+ type: Number,
21
+ required: true,
22
+ min: 0,
23
+ max: 100,
24
+ comment: "0-100 percentage for this phase"
25
+ },
26
+ start_date: {
27
+ type: Date,
28
+ required: true,
29
+ comment: "Phase start date"
30
+ },
31
+ end_date: {
32
+ type: Date,
33
+ comment: "Phase end date"
34
+ },
35
+ phase_status_id_sygms: {
36
+ type: mongoose_1.default.Schema.Types.ObjectId,
37
+ ref: "core_general_master",
38
+ required: true,
39
+ comment: "FK to core_general_master - Phase status (APP_PHASE_STATUS)"
40
+ }
41
+ }],
42
+ approll_rollout_criteria: {
43
+ type: mongoose_1.Schema.Types.Mixed,
44
+ comment: "JSON object - Rollout criteria (min_os_version, device_types, regions, user_segments)"
45
+ },
46
+ approll_auto_advance: {
47
+ type: Boolean,
48
+ default: false,
49
+ comment: "Auto advance to next phase"
50
+ },
51
+ approll_created_by_id_auth: {
52
+ type: mongoose_1.default.Schema.Types.ObjectId,
53
+ ref: "auth_user_mst",
54
+ required: true,
55
+ comment: "FK to auth_user_mst - User who created"
56
+ },
57
+ approll_created_at: {
58
+ type: Date,
59
+ default: Date.now,
60
+ comment: "Creation timestamp"
61
+ },
62
+ approll_updated_at: {
63
+ type: Date,
64
+ default: Date.now,
65
+ comment: "Last update timestamp"
66
+ }
67
+ }, { collection: 'app_rollout_config_mst', timestamps: { createdAt: 'approll_created_at', updatedAt: 'approll_updated_at' } });
68
+ // Indexes for performance optimization
69
+ app_rollout_config_mst.index({ approll_version_id_appver: 1 });
70
+ var CAppRolloutConfigMst = mongoose_1.default.model("app_rollout_config_mst", app_rollout_config_mst);
71
+ exports.CAppRolloutConfigMst = CAppRolloutConfigMst;
@@ -0,0 +1,8 @@
1
+ import { IAppStoreProviderMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppStoreProviderMst: mongoose.Model<IAppStoreProviderMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppStoreProviderMst, {}> & IAppStoreProviderMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppStoreProviderMst };
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppStoreProviderMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_store_provider_mst = new mongoose_1.Schema({
7
+ appstore_store_name: {
8
+ type: String,
9
+ required: true,
10
+ maxlength: 200,
11
+ trim: true,
12
+ comment: "Store name (e.g., 'Apple App Store', 'Google Play Store', 'Vercel', 'Netlify')"
13
+ },
14
+ appstore_store_type_id_sygms: {
15
+ type: mongoose_1.default.Schema.Types.ObjectId,
16
+ ref: "core_general_master",
17
+ required: true,
18
+ comment: "FK to core_general_master - Store type (APP_STORE_TYPE: 'ios', 'android', 'web', 'both')"
19
+ },
20
+ appstore_store_provider_code: {
21
+ type: String,
22
+ required: true,
23
+ unique: true,
24
+ maxlength: 100,
25
+ trim: true,
26
+ comment: "UNIQUE code: 'app_store', 'play_store', 'vercel', 'netlify', 'galaxy_store', 'appgallery', 'enterprise', etc."
27
+ },
28
+ appstore_store_api_endpoint: {
29
+ type: String,
30
+ maxlength: 500,
31
+ trim: true,
32
+ comment: "API endpoint if available"
33
+ },
34
+ appstore_store_credentials: {
35
+ type: mongoose_1.Schema.Types.Mixed,
36
+ comment: "JSON object - Store credentials (encrypted)"
37
+ },
38
+ appstore_store_config: {
39
+ type: mongoose_1.Schema.Types.Mixed,
40
+ comment: "JSON object - Store-specific configuration"
41
+ },
42
+ appstore_is_active: {
43
+ type: Boolean,
44
+ default: true,
45
+ comment: "Can be disabled without deleting"
46
+ },
47
+ appstore_created_by_id_auth: {
48
+ type: mongoose_1.default.Schema.Types.ObjectId,
49
+ ref: "auth_user_mst",
50
+ required: true,
51
+ comment: "FK to auth_user_mst - User who created"
52
+ },
53
+ appstore_created_at: {
54
+ type: Date,
55
+ default: Date.now,
56
+ comment: "Creation timestamp"
57
+ },
58
+ appstore_updated_at: {
59
+ type: Date,
60
+ default: Date.now,
61
+ comment: "Last update timestamp"
62
+ }
63
+ }, { collection: 'app_store_provider_mst', timestamps: { createdAt: 'appstore_created_at', updatedAt: 'appstore_updated_at' } });
64
+ // Indexes for performance optimization
65
+ app_store_provider_mst.index({ appstore_store_provider_code: 1 }, { unique: true });
66
+ app_store_provider_mst.index({ appstore_store_type_id_sygms: 1 });
67
+ app_store_provider_mst.index({ appstore_is_active: 1 });
68
+ var CAppStoreProviderMst = mongoose_1.default.model("app_store_provider_mst", app_store_provider_mst);
69
+ exports.CAppStoreProviderMst = CAppStoreProviderMst;
@@ -0,0 +1,8 @@
1
+ import { IAppUpdateChangelogMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppUpdateChangelogMst: mongoose.Model<IAppUpdateChangelogMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppUpdateChangelogMst, {}> & IAppUpdateChangelogMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppUpdateChangelogMst };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppUpdateChangelogMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_update_changelog_mst = new mongoose_1.Schema({
7
+ appchg_version_id_appver: {
8
+ type: mongoose_1.default.Schema.Types.ObjectId,
9
+ ref: "app_version_mst",
10
+ required: true,
11
+ comment: "FK to app_version_mst - Reference to app version"
12
+ },
13
+ appchg_category_id_sygms: {
14
+ type: mongoose_1.default.Schema.Types.ObjectId,
15
+ ref: "core_general_master",
16
+ required: true,
17
+ comment: "FK to core_general_master - Changelog category (APP_CHANGELOG_CATEGORY)"
18
+ },
19
+ appchg_title: {
20
+ type: String,
21
+ required: true,
22
+ maxlength: 200,
23
+ trim: true,
24
+ comment: "Brief title"
25
+ },
26
+ appchg_description: {
27
+ type: String,
28
+ required: true,
29
+ maxlength: 2000,
30
+ trim: true,
31
+ comment: "Detailed description"
32
+ },
33
+ appchg_bug_id: {
34
+ type: String,
35
+ maxlength: 100,
36
+ trim: true,
37
+ comment: "Related bug/ticket ID"
38
+ },
39
+ appchg_affected_modules: {
40
+ type: [String],
41
+ comment: "Which modules affected"
42
+ },
43
+ appchg_priority_id_sygms: {
44
+ type: mongoose_1.default.Schema.Types.ObjectId,
45
+ ref: "core_general_master",
46
+ required: true,
47
+ comment: "FK to core_general_master - Priority (APP_PRIORITY)"
48
+ },
49
+ appchg_tags: {
50
+ type: [String],
51
+ comment: "Tags for filtering"
52
+ },
53
+ appchg_created_by_id_auth: {
54
+ type: mongoose_1.default.Schema.Types.ObjectId,
55
+ ref: "auth_user_mst",
56
+ required: true,
57
+ comment: "FK to auth_user_mst - User who created"
58
+ },
59
+ appchg_created_at: {
60
+ type: Date,
61
+ default: Date.now,
62
+ comment: "Creation timestamp"
63
+ }
64
+ }, { collection: 'app_update_changelog_mst' });
65
+ // Indexes for performance optimization
66
+ app_update_changelog_mst.index({ appchg_version_id_appver: 1 });
67
+ app_update_changelog_mst.index({ appchg_category_id_sygms: 1 });
68
+ app_update_changelog_mst.index({ appchg_priority_id_sygms: 1 });
69
+ app_update_changelog_mst.index({ appchg_created_at: -1 });
70
+ var CAppUpdateChangelogMst = mongoose_1.default.model("app_update_changelog_mst", app_update_changelog_mst);
71
+ exports.CAppUpdateChangelogMst = CAppUpdateChangelogMst;
@@ -0,0 +1,8 @@
1
+ import { IAppUpdateDeploymentMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppUpdateDeploymentMst: mongoose.Model<IAppUpdateDeploymentMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppUpdateDeploymentMst, {}> & IAppUpdateDeploymentMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppUpdateDeploymentMst };
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppUpdateDeploymentMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_update_deployment_mst = new mongoose_1.Schema({
7
+ appdep_version_id_appver: {
8
+ type: mongoose_1.default.Schema.Types.ObjectId,
9
+ ref: "app_version_mst",
10
+ required: true,
11
+ comment: "FK to app_version_mst - Reference to app version"
12
+ },
13
+ appdep_deployment_type_id_sygms: {
14
+ type: mongoose_1.default.Schema.Types.ObjectId,
15
+ ref: "core_general_master",
16
+ required: true,
17
+ comment: "FK to core_general_master - Deployment type (APP_DEPLOYMENT_TYPE)"
18
+ },
19
+ appdep_rollout_percentage: {
20
+ type: Number,
21
+ required: true,
22
+ min: 0,
23
+ max: 100,
24
+ comment: "0-100 for staged rollouts"
25
+ },
26
+ appdep_target_users: {
27
+ type: [String],
28
+ comment: "Specific user IDs (optional)"
29
+ },
30
+ appdep_start_date: {
31
+ type: Date,
32
+ required: true,
33
+ default: Date.now,
34
+ comment: "Deployment start date"
35
+ },
36
+ appdep_end_date: {
37
+ type: Date,
38
+ comment: "Deployment end date"
39
+ },
40
+ appdep_status_id_sygms: {
41
+ type: mongoose_1.default.Schema.Types.ObjectId,
42
+ ref: "core_general_master",
43
+ required: true,
44
+ comment: "FK to core_general_master - Deployment status (APP_DEPLOYMENT_STATUS)"
45
+ },
46
+ appdep_rollback_version_id_appver: {
47
+ type: mongoose_1.default.Schema.Types.ObjectId,
48
+ ref: "app_version_mst",
49
+ comment: "FK to app_version_mst - If rolled back"
50
+ },
51
+ appdep_rollback_reason: {
52
+ type: String,
53
+ maxlength: 1000,
54
+ trim: true,
55
+ comment: "Rollback reason"
56
+ },
57
+ appdep_workflow_id_wfrg: {
58
+ type: mongoose_1.default.Schema.Types.ObjectId,
59
+ ref: "core_workflow_registry",
60
+ comment: "FK to core_workflow_registry - Workflow for deployment approval (optional, recommended for production)"
61
+ },
62
+ appdep_current_step: {
63
+ type: Number,
64
+ comment: "Current workflow step (if workflow is active)"
65
+ },
66
+ appdep_created_by_id_auth: {
67
+ type: mongoose_1.default.Schema.Types.ObjectId,
68
+ ref: "auth_user_mst",
69
+ required: true,
70
+ comment: "FK to auth_user_mst - User who created"
71
+ },
72
+ appdep_created_at: {
73
+ type: Date,
74
+ default: Date.now,
75
+ comment: "Creation timestamp"
76
+ },
77
+ appdep_updated_at: {
78
+ type: Date,
79
+ default: Date.now,
80
+ comment: "Last update timestamp"
81
+ }
82
+ }, { collection: 'app_update_deployment_mst', timestamps: { createdAt: 'appdep_created_at', updatedAt: 'appdep_updated_at' } });
83
+ // Indexes for performance optimization
84
+ app_update_deployment_mst.index({ appdep_version_id_appver: 1 });
85
+ app_update_deployment_mst.index({ appdep_deployment_type_id_sygms: 1 });
86
+ app_update_deployment_mst.index({ appdep_status_id_sygms: 1 });
87
+ app_update_deployment_mst.index({ appdep_workflow_id_wfrg: 1, appdep_current_step: 1 });
88
+ app_update_deployment_mst.index({ appdep_start_date: -1 });
89
+ var CAppUpdateDeploymentMst = mongoose_1.default.model("app_update_deployment_mst", app_update_deployment_mst);
90
+ exports.CAppUpdateDeploymentMst = CAppUpdateDeploymentMst;
@@ -0,0 +1,8 @@
1
+ import { IAppUpdateStatisticsMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppUpdateStatisticsMst: mongoose.Model<IAppUpdateStatisticsMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppUpdateStatisticsMst, {}> & IAppUpdateStatisticsMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppUpdateStatisticsMst };
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppUpdateStatisticsMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_update_statistics_mst = new mongoose_1.Schema({
7
+ appstat_version_id_appver: {
8
+ type: mongoose_1.default.Schema.Types.ObjectId,
9
+ ref: "app_version_mst",
10
+ required: true,
11
+ comment: "FK to app_version_mst - Reference to app version"
12
+ },
13
+ appstat_stat_date: {
14
+ type: Date,
15
+ required: true,
16
+ default: Date.now,
17
+ comment: "Statistics date"
18
+ },
19
+ appstat_total_users: {
20
+ type: Number,
21
+ required: true,
22
+ default: 0,
23
+ comment: "Total users"
24
+ },
25
+ appstat_users_on_version: {
26
+ type: Number,
27
+ required: true,
28
+ default: 0,
29
+ comment: "Users on this version"
30
+ },
31
+ appstat_users_updated: {
32
+ type: Number,
33
+ required: true,
34
+ default: 0,
35
+ comment: "Users updated"
36
+ },
37
+ appstat_users_failed: {
38
+ type: Number,
39
+ required: true,
40
+ default: 0,
41
+ comment: "Users failed to update"
42
+ },
43
+ appstat_success_rate: {
44
+ type: Number,
45
+ required: true,
46
+ default: 0,
47
+ min: 0,
48
+ max: 100,
49
+ comment: "Success rate percentage"
50
+ },
51
+ appstat_avg_update_time: {
52
+ type: Number,
53
+ default: 0,
54
+ comment: "Average update time in seconds"
55
+ },
56
+ appstat_download_count: {
57
+ type: Number,
58
+ default: 0,
59
+ comment: "Download count"
60
+ },
61
+ appstat_install_count: {
62
+ type: Number,
63
+ default: 0,
64
+ comment: "Install count"
65
+ },
66
+ appstat_rollback_count: {
67
+ type: Number,
68
+ default: 0,
69
+ comment: "Rollback count"
70
+ },
71
+ appstat_created_at: {
72
+ type: Date,
73
+ default: Date.now,
74
+ comment: "Creation timestamp"
75
+ },
76
+ appstat_updated_at: {
77
+ type: Date,
78
+ default: Date.now,
79
+ comment: "Last update timestamp"
80
+ }
81
+ }, { collection: 'app_update_statistics_mst', timestamps: { createdAt: 'appstat_created_at', updatedAt: 'appstat_updated_at' } });
82
+ // Indexes for performance optimization
83
+ app_update_statistics_mst.index({ appstat_version_id_appver: 1, appstat_stat_date: 1 });
84
+ app_update_statistics_mst.index({ appstat_version_id_appver: 1 });
85
+ app_update_statistics_mst.index({ appstat_stat_date: -1 });
86
+ var CAppUpdateStatisticsMst = mongoose_1.default.model("app_update_statistics_mst", app_update_statistics_mst);
87
+ exports.CAppUpdateStatisticsMst = CAppUpdateStatisticsMst;
@@ -0,0 +1,8 @@
1
+ import { IAppUserUpdateStatusMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppUserUpdateStatusMst: mongoose.Model<IAppUserUpdateStatusMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppUserUpdateStatusMst, {}> & IAppUserUpdateStatusMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppUserUpdateStatusMst };
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppUserUpdateStatusMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_user_update_status_mst = new mongoose_1.Schema({
7
+ appust_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"
12
+ },
13
+ appust_user_id_auth: {
14
+ type: mongoose_1.default.Schema.Types.ObjectId,
15
+ ref: "auth_user_mst",
16
+ required: true,
17
+ comment: "FK to auth_user_mst - Reference to user"
18
+ },
19
+ appust_device_id: {
20
+ type: String,
21
+ required: true,
22
+ maxlength: 200,
23
+ trim: true,
24
+ comment: "Unique device identifier"
25
+ },
26
+ appust_current_version: {
27
+ type: String,
28
+ required: true,
29
+ maxlength: 50,
30
+ trim: true,
31
+ comment: "Current version"
32
+ },
33
+ appust_current_version_code: {
34
+ type: Number,
35
+ required: true,
36
+ comment: "Current version code"
37
+ },
38
+ appust_platform_id_sygms: {
39
+ type: mongoose_1.default.Schema.Types.ObjectId,
40
+ ref: "core_general_master",
41
+ required: true,
42
+ comment: "FK to core_general_master - Platform type (APP_PLATFORM: 'ios', 'android' only)"
43
+ },
44
+ appust_last_update_check: {
45
+ type: Date,
46
+ required: true,
47
+ default: Date.now,
48
+ comment: "Last update check date"
49
+ },
50
+ appust_last_update_attempt: {
51
+ type: Date,
52
+ comment: "Last update attempt date"
53
+ },
54
+ appust_last_update_success: {
55
+ type: Date,
56
+ comment: "Last successful update date"
57
+ },
58
+ appust_last_update_error: {
59
+ type: String,
60
+ maxlength: 1000,
61
+ trim: true,
62
+ comment: "Last update error message"
63
+ },
64
+ appust_update_status_id_sygms: {
65
+ type: mongoose_1.default.Schema.Types.ObjectId,
66
+ ref: "core_general_master",
67
+ required: true,
68
+ comment: "FK to core_general_master - Update status (APP_UPDATE_STATUS)"
69
+ },
70
+ appust_auto_update_enabled: {
71
+ type: Boolean,
72
+ default: true,
73
+ comment: "Auto update enabled"
74
+ },
75
+ appust_device_info: {
76
+ type: mongoose_1.Schema.Types.Mixed,
77
+ comment: "JSON object - Device information (os_version, app_version, device_model, manufacturer)"
78
+ },
79
+ appust_created_at: {
80
+ type: Date,
81
+ default: Date.now,
82
+ comment: "Creation timestamp"
83
+ },
84
+ appust_updated_at: {
85
+ type: Date,
86
+ default: Date.now,
87
+ comment: "Last update timestamp"
88
+ }
89
+ }, { collection: 'app_user_update_status_mst', timestamps: { createdAt: 'appust_created_at', updatedAt: 'appust_updated_at' } });
90
+ // Indexes for performance optimization
91
+ app_user_update_status_mst.index({ appust_reg_id_appreg: 1, appust_user_id_auth: 1, appust_device_id: 1 }, { unique: true });
92
+ app_user_update_status_mst.index({ appust_reg_id_appreg: 1 });
93
+ app_user_update_status_mst.index({ appust_user_id_auth: 1 });
94
+ app_user_update_status_mst.index({ appust_platform_id_sygms: 1 });
95
+ app_user_update_status_mst.index({ appust_update_status_id_sygms: 1 });
96
+ var CAppUserUpdateStatusMst = mongoose_1.default.model("app_user_update_status_mst", app_user_update_status_mst);
97
+ exports.CAppUserUpdateStatusMst = CAppUserUpdateStatusMst;
@@ -0,0 +1,8 @@
1
+ import { IAppVersionMst } from "cloud-ide-lms-model";
2
+ import mongoose from "mongoose";
3
+ declare const CAppVersionMst: mongoose.Model<IAppVersionMst, {}, {}, {}, mongoose.Document<unknown, {}, IAppVersionMst, {}> & IAppVersionMst & Required<{
4
+ _id: string;
5
+ }> & {
6
+ __v: number;
7
+ }, any>;
8
+ export { CAppVersionMst };
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CAppVersionMst = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* SCHEMA START */
6
+ var app_version_mst = new mongoose_1.Schema({
7
+ appver_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
+ appver_version_number: {
14
+ type: String,
15
+ required: true,
16
+ maxlength: 50,
17
+ trim: true,
18
+ comment: "Internal version number (e.g., '1.0.0', '1.0.1') - unique per app"
19
+ },
20
+ appver_version_code: {
21
+ type: Number,
22
+ required: true,
23
+ comment: "Internal incremental version code (1, 2, 3...) - unique per app"
24
+ },
25
+ appver_release_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 - Release type (APP_RELEASE_TYPE)"
30
+ },
31
+ appver_is_active: {
32
+ type: Boolean,
33
+ default: true,
34
+ comment: "Is active version"
35
+ },
36
+ appver_is_forced: {
37
+ type: Boolean,
38
+ default: false,
39
+ comment: "Force update required (mobile apps only)"
40
+ },
41
+ appver_min_supported_version: {
42
+ type: String,
43
+ maxlength: 50,
44
+ trim: true,
45
+ comment: "Minimum version required (mobile apps only)"
46
+ },
47
+ appver_release_date: {
48
+ type: Date,
49
+ required: true,
50
+ default: Date.now,
51
+ comment: "Release date"
52
+ },
53
+ appver_release_notes: {
54
+ type: String,
55
+ maxlength: 5000,
56
+ trim: true,
57
+ comment: "General release notes (store-specific notes in publish_details)"
58
+ },
59
+ appver_build_number: {
60
+ type: String,
61
+ maxlength: 50,
62
+ trim: true,
63
+ comment: "Build number"
64
+ },
65
+ appver_bundle_size: {
66
+ type: Number,
67
+ required: true,
68
+ comment: "Size in bytes"
69
+ },
70
+ appver_bundle_file_id_cyfm: {
71
+ type: mongoose_1.default.Schema.Types.ObjectId,
72
+ ref: "core_file_manager",
73
+ required: true,
74
+ comment: "FK to core_file_manager - Update bundle file (mobile OTA) or build file (web)"
75
+ },
76
+ appver_bundle_hash: {
77
+ type: String,
78
+ required: true,
79
+ maxlength: 64,
80
+ trim: true,
81
+ comment: "SHA-256 hash for verification"
82
+ },
83
+ appver_bundle_signature: {
84
+ type: String,
85
+ maxlength: 1000,
86
+ trim: true,
87
+ comment: "Digital signature (stored as file or text)"
88
+ },
89
+ appver_deployment_status_id_sygms: {
90
+ type: mongoose_1.default.Schema.Types.ObjectId,
91
+ ref: "core_general_master",
92
+ required: true,
93
+ comment: "FK to core_general_master - Deployment status (APP_DEPLOYMENT_STATUS)"
94
+ },
95
+ appver_deployed_by_id_auth: {
96
+ type: mongoose_1.default.Schema.Types.ObjectId,
97
+ ref: "auth_user_mst",
98
+ comment: "FK to auth_user_mst - User who deployed"
99
+ },
100
+ appver_deployed_at: {
101
+ type: Date,
102
+ comment: "Date when version was deployed"
103
+ },
104
+ appver_created_by_id_auth: {
105
+ type: mongoose_1.default.Schema.Types.ObjectId,
106
+ ref: "auth_user_mst",
107
+ required: true,
108
+ comment: "FK to auth_user_mst - User who created"
109
+ },
110
+ appver_created_at: {
111
+ type: Date,
112
+ default: Date.now,
113
+ comment: "Creation timestamp"
114
+ },
115
+ appver_updated_at: {
116
+ type: Date,
117
+ default: Date.now,
118
+ comment: "Last update timestamp"
119
+ }
120
+ }, { collection: 'app_version_mst', timestamps: { createdAt: 'appver_created_at', updatedAt: 'appver_updated_at' } });
121
+ // Indexes for performance optimization
122
+ app_version_mst.index({ appver_reg_id_appreg: 1, appver_version_number: 1 }, { unique: true });
123
+ app_version_mst.index({ appver_reg_id_appreg: 1, appver_version_code: 1 }, { unique: true });
124
+ app_version_mst.index({ appver_reg_id_appreg: 1 });
125
+ app_version_mst.index({ appver_release_type_id_sygms: 1 });
126
+ app_version_mst.index({ appver_deployment_status_id_sygms: 1 });
127
+ app_version_mst.index({ appver_is_active: 1 });
128
+ var CAppVersionMst = mongoose_1.default.model("app_version_mst", app_version_mst);
129
+ exports.CAppVersionMst = CAppVersionMst;