cloud-ide-model-schema 1.1.120 → 1.1.124

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.
@@ -431,95 +431,17 @@ var admission_application_main = new mongoose_1.Schema({
431
431
  ref: "core_education_board",
432
432
  comment: "Board student is applying for (if different from current)"
433
433
  },
434
- // SECTION 4: PARENT/GUARDIAN & EMERGENCY CONTACT
435
- admap_guardian_1_full_name: {
436
- type: String,
437
- maxlength: 255,
438
- trim: true
439
- },
440
- admap_guardian_1_relationship: {
441
- type: String,
442
- maxlength: 100,
443
- trim: true,
444
- enum: ["Mother", "Father", "Guardian", "Grandparent", "Other"]
445
- },
446
- admap_guardian_1_phone: {
447
- type: String,
448
- maxlength: 50,
449
- trim: true
450
- },
451
- admap_guardian_1_country_code: {
452
- type: String,
453
- maxlength: 10,
454
- trim: true
455
- },
456
- admap_guardian_1_email: {
457
- type: String,
458
- maxlength: 255,
459
- trim: true,
460
- lowercase: true
461
- },
462
- admap_guardian_1_occupation: {
463
- type: String,
464
- maxlength: 255,
465
- trim: true
466
- },
467
- admap_guardian_1_employer: {
468
- type: String,
469
- maxlength: 255,
470
- trim: true
471
- },
472
- admap_guardian_1_address: {
473
- type: String,
474
- maxlength: 255,
475
- trim: true
476
- },
477
- admap_guardian_2_full_name: {
478
- type: String,
479
- maxlength: 255,
480
- trim: true
481
- },
482
- admap_guardian_2_relationship: {
483
- type: String,
484
- maxlength: 100,
485
- trim: true,
486
- enum: ["Mother", "Father", "Guardian", "Grandparent", "Other"]
487
- },
488
- admap_guardian_2_phone: {
489
- type: String,
490
- maxlength: 50,
491
- trim: true
492
- },
493
- admap_guardian_2_country_code: {
494
- type: String,
495
- maxlength: 10,
496
- trim: true
497
- },
498
- admap_guardian_2_email: {
499
- type: String,
500
- maxlength: 255,
501
- trim: true,
502
- lowercase: true
503
- },
504
- admap_guardian_2_occupation: {
505
- type: String,
506
- maxlength: 255,
507
- trim: true
508
- },
509
- admap_guardian_2_employer: {
510
- type: String,
511
- maxlength: 255,
512
- trim: true
513
- },
434
+ // SECTION 4: EMERGENCY CONTACT
435
+ // Note: Guardian information is managed through Family Members & Guardians section
514
436
  admap_emergency_contact_name: {
515
437
  type: String,
516
438
  maxlength: 255,
517
439
  trim: true
518
440
  },
519
- admap_emergency_contact_relationship: {
520
- type: String,
521
- maxlength: 100,
522
- trim: true
441
+ admap_emergency_contact_relationship_id_sygms: {
442
+ type: mongoose_1.default.Schema.Types.ObjectId,
443
+ ref: "core_general_master",
444
+ comment: "Emergency contact relationship - Reference to core_general_master (type code: family_relationship)"
523
445
  },
524
446
  admap_emergency_contact_phone: {
525
447
  type: String,
@@ -552,11 +474,10 @@ var admission_application_main = new mongoose_1.Schema({
552
474
  trim: true,
553
475
  comment: "Sibling information (names, grades, schools)"
554
476
  },
555
- admap_transportation_method: {
556
- type: String,
557
- maxlength: 100,
558
- trim: true,
559
- enum: ["School Bus", "Parent Pickup", "Walk", "Public Transport", "Other"]
477
+ admap_transportation_method_id_sygms: {
478
+ type: mongoose_1.default.Schema.Types.ObjectId,
479
+ ref: "core_general_master",
480
+ comment: "Transportation method - Reference to core_general_master (type code: transportation_method)"
560
481
  },
561
482
  admap_bus_route_number: {
562
483
  type: String,
@@ -767,11 +688,10 @@ var admission_application_main = new mongoose_1.Schema({
767
688
  trim: true
768
689
  },
769
690
  // SECTION 7: ELECTIVE SUBJECT SELECTION
770
- admap_elective_selection_status: {
771
- type: String,
772
- maxlength: 100,
773
- trim: true,
774
- enum: ["Not Started", "In Progress", "Finalized", "Approved", "Pending"]
691
+ admap_elective_selection_status_id_sygms: {
692
+ type: mongoose_1.default.Schema.Types.ObjectId,
693
+ ref: "core_general_master",
694
+ comment: "Elective selection status - Reference to core_general_master (type code: elective_selection_status)"
775
695
  },
776
696
  admap_counseling_notes: {
777
697
  type: String,
@@ -844,11 +764,10 @@ var admission_application_main = new mongoose_1.Schema({
844
764
  maxlength: 255,
845
765
  trim: true
846
766
  },
847
- admap_letter_of_rec_1_recommender_type: {
848
- type: String,
849
- maxlength: 100,
850
- trim: true,
851
- enum: ["Teacher", "Principal", "Counselor", "Employer", "Other"]
767
+ admap_letter_of_rec_1_recommender_type_id_sygms: {
768
+ type: mongoose_1.default.Schema.Types.ObjectId,
769
+ ref: "core_general_master",
770
+ comment: "Letter of recommendation 1 recommender type - Reference to core_general_master (type code: recommender_type)"
852
771
  },
853
772
  admap_letter_of_rec_2_status: {
854
773
  type: Boolean,
@@ -862,11 +781,10 @@ var admission_application_main = new mongoose_1.Schema({
862
781
  maxlength: 255,
863
782
  trim: true
864
783
  },
865
- admap_letter_of_rec_2_recommender_type: {
866
- type: String,
867
- maxlength: 100,
868
- trim: true,
869
- enum: ["Teacher", "Principal", "Counselor", "Employer", "Other"]
784
+ admap_letter_of_rec_2_recommender_type_id_sygms: {
785
+ type: mongoose_1.default.Schema.Types.ObjectId,
786
+ ref: "core_general_master",
787
+ comment: "Letter of recommendation 2 recommender type - Reference to core_general_master (type code: recommender_type)"
870
788
  },
871
789
  admap_teacher_recommendation_status: {
872
790
  type: Boolean,
@@ -1074,8 +992,7 @@ var admission_application_main = new mongoose_1.Schema({
1074
992
  timestamps: true
1075
993
  });
1076
994
  // Indexes for performance
1077
- admission_application_main.index({ admap_application_number: 1 });
1078
- admission_application_main.index({ admap_student_id: 1 });
995
+ // Note: admap_application_number and admap_student_id indexes are automatically created by unique: true, so we don't need to add them explicitly
1079
996
  admission_application_main.index({ admap_entity_id_syen: 1 });
1080
997
  admission_application_main.index({ admap_application_status_id_sygms: 1 });
1081
998
  admission_application_main.index({ admap_status_id_sygms: 1 });
@@ -1083,6 +1000,11 @@ admission_application_main.index({ admap_program_category_id_sygms: 1 });
1083
1000
  admission_application_main.index({ admap_class_program_id_acacpm: 1 });
1084
1001
  admission_application_main.index({ admap_class_program_branch_id_acabrn: 1 });
1085
1002
  admission_application_main.index({ admap_class_program_term_id_acapt: 1 });
1003
+ admission_application_main.index({ admap_emergency_contact_relationship_id_sygms: 1 });
1004
+ admission_application_main.index({ admap_transportation_method_id_sygms: 1 });
1005
+ admission_application_main.index({ admap_elective_selection_status_id_sygms: 1 });
1006
+ admission_application_main.index({ admap_letter_of_rec_1_recommender_type_id_sygms: 1 });
1007
+ admission_application_main.index({ admap_letter_of_rec_2_recommender_type_id_sygms: 1 });
1086
1008
  admission_application_main.index({ admap_created_date: -1 });
1087
1009
  var CAdmissionApplicationMain = mongoose_1.default.model("admission_application_main", admission_application_main);
1088
1010
  exports.CAdmissionApplicationMain = CAdmissionApplicationMain;
@@ -122,7 +122,7 @@ var core_education_board = new mongoose_1.Schema({
122
122
  }
123
123
  }, { collection: 'core_education_board' });
124
124
  // Indexes for performance
125
- core_education_board.index({ edbrd_code: 1 });
125
+ // Note: edbrd_code index is automatically created by unique: true, so we don't need to add it explicitly
126
126
  core_education_board.index({ edbrd_type_sygms: 1 });
127
127
  core_education_board.index({ edbrd_category_sygms: 1 });
128
128
  core_education_board.index({ edbrd_state: 1 });
@@ -103,8 +103,7 @@ var core_entity_udise = new mongoose_1.Schema({
103
103
  timestamps: true
104
104
  });
105
105
  // Indexes for performance
106
- core_entity_udise.index({ syudise_entity_id_syen: 1 });
107
- core_entity_udise.index({ syudise_code: 1 });
106
+ // Note: syudise_entity_id_syen and syudise_code indexes are automatically created by unique: true, so we don't need to add them explicitly
108
107
  core_entity_udise.index({ syudise_verified: 1 });
109
108
  core_entity_udise.index({ syudise_state_code: 1 });
110
109
  core_entity_udise.index({ syudise_district_code: 1 });
@@ -91,10 +91,10 @@ var core_system_nationality = new mongoose_1.Schema({
91
91
  timestamps: true
92
92
  });
93
93
  // Indexes for better query performance
94
+ // Note: synat_nationality_code index is automatically created by unique: true, so we don't need to add it explicitly
94
95
  core_system_nationality.index({ synat_country_id_syctr: 1 });
95
96
  core_system_nationality.index({ synat_is_group: 1 });
96
97
  core_system_nationality.index({ synat_parent_nationality_id_synat: 1 });
97
98
  core_system_nationality.index({ synat_isactive: 1 });
98
- core_system_nationality.index({ synat_nationality_code: 1 });
99
99
  var CCoreSynat = mongoose_1.default.model("core_system_nationality", core_system_nationality);
100
100
  exports.CCoreSynat = CCoreSynat;
@@ -0,0 +1,23 @@
1
+ import mongoose from "mongoose";
2
+ declare const CFeeStructure: mongoose.Model<{
3
+ [x: string]: unknown;
4
+ }, {}, {}, {}, mongoose.Document<unknown, {}, {
5
+ [x: string]: unknown;
6
+ }, {}> & {
7
+ [x: string]: unknown;
8
+ } & Required<{
9
+ _id: unknown;
10
+ }> & {
11
+ __v: number;
12
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
13
+ [x: string]: unknown;
14
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
15
+ [x: string]: unknown;
16
+ }>, {}> & mongoose.FlatRecord<{
17
+ [x: string]: unknown;
18
+ }> & Required<{
19
+ _id: unknown;
20
+ }> & {
21
+ __v: number;
22
+ }>>;
23
+ export { CFeeStructure };
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CFeeStructure = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /**
6
+ * Fee Structure Schema
7
+ * Defines the structure of fees for a specific program/class/category
8
+ */
9
+ /* SCHEMA START */
10
+ var fee_structure = new mongoose_1.Schema({
11
+ fees_structure_code: {
12
+ type: String,
13
+ required: false,
14
+ unique: true,
15
+ sparse: true,
16
+ maxlength: 50,
17
+ trim: true,
18
+ comment: "Unique fee structure code (auto-generated)"
19
+ },
20
+ fees_structure_name: {
21
+ type: String,
22
+ required: true,
23
+ minlength: 1,
24
+ maxlength: 200,
25
+ trim: true,
26
+ comment: "Fee structure name"
27
+ },
28
+ fees_structure_description: {
29
+ type: String,
30
+ maxlength: 1000,
31
+ trim: true,
32
+ comment: "Fee structure description"
33
+ },
34
+ fees_academic_year_id_acayr: {
35
+ type: mongoose_1.default.Schema.Types.ObjectId,
36
+ ref: "aca_academic_year",
37
+ required: true,
38
+ comment: "Academic year this fee structure applies to"
39
+ },
40
+ fees_entity_id_syen: {
41
+ type: mongoose_1.default.Schema.Types.ObjectId,
42
+ ref: "core_system_entity",
43
+ required: true,
44
+ comment: "Entity/Organization this fee structure belongs to"
45
+ },
46
+ fees_class_program_id_acacpm: {
47
+ type: mongoose_1.default.Schema.Types.ObjectId,
48
+ ref: "aca_class_program_master",
49
+ default: null,
50
+ comment: "Class/Program this fee structure applies to (null = all)"
51
+ },
52
+ fees_class_program_branch_id_acabrn: {
53
+ type: mongoose_1.default.Schema.Types.ObjectId,
54
+ ref: "aca_class_program_branch",
55
+ default: null,
56
+ comment: "Branch/Specialization (null = all branches)"
57
+ },
58
+ fees_class_program_term_id_acapt: {
59
+ type: mongoose_1.default.Schema.Types.ObjectId,
60
+ ref: "aca_class_program_term",
61
+ default: null,
62
+ comment: "Term/Semester (null = all terms)"
63
+ },
64
+ fees_program_term_section_id_acapts: {
65
+ type: mongoose_1.default.Schema.Types.ObjectId,
66
+ ref: "aca_program_term_section",
67
+ default: null,
68
+ comment: "Section (null = all sections)"
69
+ },
70
+ fees_student_category_id_sygms: {
71
+ type: mongoose_1.default.Schema.Types.ObjectId,
72
+ ref: "core_general_master",
73
+ default: null,
74
+ comment: "Student/Reservation category (null = all categories)"
75
+ },
76
+ fees_is_active: {
77
+ type: Boolean,
78
+ default: true,
79
+ comment: "Active status flag"
80
+ },
81
+ fees_created_by_user: {
82
+ type: mongoose_1.default.Schema.Types.ObjectId,
83
+ ref: "auth_user_mst",
84
+ default: null,
85
+ comment: "User who created the fee structure"
86
+ }
87
+ }, {
88
+ collection: 'fee_structures',
89
+ timestamps: false
90
+ });
91
+ // Indexes for performance
92
+ fee_structure.index({ fees_structure_code: 1 }, { unique: true, sparse: true });
93
+ fee_structure.index({ fees_entity_id_syen: 1, fees_academic_year_id_acayr: 1 });
94
+ fee_structure.index({ fees_class_program_id_acacpm: 1 });
95
+ fee_structure.index({ fees_entity_id_syen: 1, fees_is_active: 1 });
96
+ var CFeeStructure = mongoose_1.default.model("fee_structures", fee_structure);
97
+ exports.CFeeStructure = CFeeStructure;
@@ -1 +1,2 @@
1
1
  export * from './fee_assignment';
2
+ export * from './fee_structure';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./fee_assignment"), exports);
18
+ __exportStar(require("./fee_structure"), exports);
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript": "^5.8.3"
10
10
  },
11
11
  "name": "cloud-ide-model-schema",
12
- "version": "1.1.120",
12
+ "version": "1.1.124",
13
13
  "description": "Pachage for schema management of Cloud IDEsys LMS",
14
14
  "main": "lib/index.js",
15
15
  "types": "lib/index.d.ts",