cloud-ide-model-schema 1.1.120 → 1.1.123
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/admission/admission_application_main.js +27 -104
- package/lib/schema/core/core_education_board.js +1 -1
- package/lib/schema/fees/fee_structure.d.ts +23 -0
- package/lib/schema/fees/fee_structure.js +97 -0
- package/lib/schema/fees/index.d.ts +1 -0
- package/lib/schema/fees/index.js +1 -0
- package/package.json +1 -1
|
@@ -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:
|
|
435
|
-
|
|
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
|
-
|
|
520
|
-
type:
|
|
521
|
-
|
|
522
|
-
|
|
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
|
-
|
|
556
|
-
type:
|
|
557
|
-
|
|
558
|
-
|
|
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
|
-
|
|
771
|
-
type:
|
|
772
|
-
|
|
773
|
-
|
|
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
|
-
|
|
848
|
-
type:
|
|
849
|
-
|
|
850
|
-
|
|
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
|
-
|
|
866
|
-
type:
|
|
867
|
-
|
|
868
|
-
|
|
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,
|
|
@@ -1083,6 +1001,11 @@ admission_application_main.index({ admap_program_category_id_sygms: 1 });
|
|
|
1083
1001
|
admission_application_main.index({ admap_class_program_id_acacpm: 1 });
|
|
1084
1002
|
admission_application_main.index({ admap_class_program_branch_id_acabrn: 1 });
|
|
1085
1003
|
admission_application_main.index({ admap_class_program_term_id_acapt: 1 });
|
|
1004
|
+
admission_application_main.index({ admap_emergency_contact_relationship_id_sygms: 1 });
|
|
1005
|
+
admission_application_main.index({ admap_transportation_method_id_sygms: 1 });
|
|
1006
|
+
admission_application_main.index({ admap_elective_selection_status_id_sygms: 1 });
|
|
1007
|
+
admission_application_main.index({ admap_letter_of_rec_1_recommender_type_id_sygms: 1 });
|
|
1008
|
+
admission_application_main.index({ admap_letter_of_rec_2_recommender_type_id_sygms: 1 });
|
|
1086
1009
|
admission_application_main.index({ admap_created_date: -1 });
|
|
1087
1010
|
var CAdmissionApplicationMain = mongoose_1.default.model("admission_application_main", admission_application_main);
|
|
1088
1011
|
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
|
-
|
|
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 });
|
|
@@ -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: true
|
|
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;
|
package/lib/schema/fees/index.js
CHANGED
package/package.json
CHANGED