cloud-ide-model-schema 1.1.179 → 1.1.180
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.
- package/lib/schema/academics/aca_class_program_master.js +4 -0
- package/lib/schema/admission/admission_application_main.js +7 -1
- package/lib/schema/core/core_entity_mapping.js +3 -0
- package/lib/schema/core/core_system_entity.js +4 -0
- package/lib/schema/core/core_user_type_mapping.js +2 -0
- package/lib/schema/core/core_workflow_transaction_history.js +3 -1
- package/package.json +1 -1
|
@@ -27,6 +27,10 @@ var aca_class_program_master = new mongoose_1.Schema({
|
|
|
27
27
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
28
28
|
ref: "academics_education_board"
|
|
29
29
|
},
|
|
30
|
+
acacpm_student_role_id_syro: {
|
|
31
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
32
|
+
ref: "core_user_roles"
|
|
33
|
+
},
|
|
30
34
|
acacpm_isactive: {
|
|
31
35
|
type: Boolean,
|
|
32
36
|
default: true
|
|
@@ -162,7 +162,13 @@ var admission_application_main = new mongoose_1.Schema({
|
|
|
162
162
|
trim: true,
|
|
163
163
|
comment: "Accessibility requirements and special accommodations needed"
|
|
164
164
|
},
|
|
165
|
-
// SECTION 2: CONTACT & ADDRESS INFORMATION
|
|
165
|
+
// SECTION 2: CONTACT & ADDRESS INFORMATION
|
|
166
|
+
// Note: Some address fields might be managed via separate tab, but pin code reference is needed here
|
|
167
|
+
admap_pin_sypin: {
|
|
168
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
169
|
+
ref: "core_pin_code",
|
|
170
|
+
comment: "Permanent Address PIN Code"
|
|
171
|
+
},
|
|
166
172
|
// SECTION 3: ACADEMIC HISTORY
|
|
167
173
|
admap_program_applying_for: {
|
|
168
174
|
type: String,
|
|
@@ -60,5 +60,8 @@ core_entity_mapping.index({ syenm_entity_id_syen: 1, syenm_isactive: 1 });
|
|
|
60
60
|
core_entity_mapping.index({ syenm_role_id_syusrol: 1 });
|
|
61
61
|
// Index for active mappings only
|
|
62
62
|
core_entity_mapping.index({ syenm_isactive: 1 });
|
|
63
|
+
// Compound index for session verification (used in decodeToken)
|
|
64
|
+
core_entity_mapping.index({ syenm_id_user: 1, syenm_id_logses: 1, syenm_isloggedin: 1, syenm_isactive: 1 });
|
|
65
|
+
core_entity_mapping.index({ syenm_id_logses: 1 });
|
|
63
66
|
var CCoreSyenm = mongoose_1.default.model("core_entity_mapping", core_entity_mapping);
|
|
64
67
|
exports.CCoreSyenm = CCoreSyenm;
|
|
@@ -173,5 +173,9 @@ var core_system_entity = new mongoose_1.Schema({
|
|
|
173
173
|
default: true
|
|
174
174
|
},
|
|
175
175
|
}, { collection: 'core_system_entity' });
|
|
176
|
+
// Indexes for performance
|
|
177
|
+
core_system_entity.index({ syen_id_syen: 1, syen_isactive: 1 }); // For entity tree recursion
|
|
178
|
+
core_system_entity.index({ syen_entity_type_sygms: 1 });
|
|
179
|
+
core_system_entity.index({ syen_isactive: 1 });
|
|
176
180
|
var CCoreSyen = mongoose_1.default.model("core_system_entity", core_system_entity);
|
|
177
181
|
exports.CCoreSyen = CCoreSyen;
|
|
@@ -81,5 +81,7 @@ core_user_type_mapping.index({
|
|
|
81
81
|
syutm_user_type: 1,
|
|
82
82
|
syutm_entity_id_syen: 1
|
|
83
83
|
}, { unique: true, sparse: true });
|
|
84
|
+
// Compound index for resolution lookup
|
|
85
|
+
core_user_type_mapping.index({ syutm_type_specific_id: 1, syutm_user_type: 1, syutm_isactive: 1 });
|
|
84
86
|
var CCoreUserTypeMapping = mongoose_1.default.model("core_user_type_mapping", core_user_type_mapping);
|
|
85
87
|
exports.CCoreUserTypeMapping = CCoreUserTypeMapping;
|
|
@@ -78,8 +78,10 @@ var core_workflow_transaction_history = new mongoose_1.Schema({
|
|
|
78
78
|
}
|
|
79
79
|
}, { collection: 'core_workflow_transaction_history' });
|
|
80
80
|
// Indexes for performance optimization
|
|
81
|
+
// Indexes for performance optimization
|
|
81
82
|
core_workflow_transaction_history.index({ wfth_workflow_id_wfrg: 1, wfth_request_id: 1 });
|
|
82
|
-
core_workflow_transaction_history.index({ wfth_request_table: 1, wfth_request_id: 1 });
|
|
83
|
+
core_workflow_transaction_history.index({ wfth_request_table: 1, wfth_request_id: 1, wfth_action_date: 1 }); // Optimized for history by request + sort
|
|
84
|
+
core_workflow_transaction_history.index({ wfth_workflow_id_wfrg: 1, wfth_action_date: -1 }); // Optimized for history list by workflow
|
|
83
85
|
core_workflow_transaction_history.index({ wfth_action_by_user: 1, wfth_action_date: -1 });
|
|
84
86
|
core_workflow_transaction_history.index({ wfth_action_date: -1 });
|
|
85
87
|
var CCoreWorkflowTransactionHistory = mongoose_1.default.model("core_workflow_transaction_history", core_workflow_transaction_history);
|
package/package.json
CHANGED