cloud-ide-model-schema 1.1.103 → 1.1.105
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.d.ts +23 -0
- package/lib/schema/admission/admission_application_main.js +1102 -0
- package/lib/schema/admission/admission_document_uploads.d.ts +23 -0
- package/lib/schema/admission/admission_document_uploads.js +216 -0
- package/lib/schema/admission/admission_elective_detail.d.ts +23 -0
- package/lib/schema/admission/admission_elective_detail.js +127 -0
- package/lib/schema/admission/admission_status_history.d.ts +23 -0
- package/lib/schema/admission/admission_status_history.js +133 -0
- package/lib/schema/admission/index.d.ts +4 -0
- package/lib/schema/admission/index.js +20 -0
- package/lib/schema/core/core_board_exam_pattern.d.ts +23 -0
- package/lib/schema/core/core_board_exam_pattern.js +153 -0
- package/lib/schema/core/core_board_grade_system.d.ts +23 -0
- package/lib/schema/core/core_board_grade_system.js +211 -0
- package/lib/schema/core/core_education_board.d.ts +23 -0
- package/lib/schema/core/core_education_board.js +131 -0
- package/lib/schema/core/core_entity_udise.d.ts +23 -0
- package/lib/schema/core/core_entity_udise.js +114 -0
- package/lib/schema/core/core_school_board_affiliation.d.ts +23 -0
- package/lib/schema/core/core_school_board_affiliation.js +77 -0
- package/lib/schema/core/core_system_entity.js +4 -2
- package/lib/schema/core/core_system_nationality.d.ts +8 -0
- package/lib/schema/core/core_system_nationality.js +100 -0
- package/lib/schema/core/index.d.ts +18 -2
- package/lib/schema/core/index.js +13 -1
- package/lib/schema/frontdesk/fdsk_leads.js +4 -0
- package/lib/schema/frontdesk/index.d.ts +0 -2
- package/lib/schema/frontdesk/index.js +0 -2
- package/lib/schema/index.d.ts +1 -0
- package/lib/schema/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CCoreBoardExamPattern = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* SCHEMA START */
|
|
6
|
+
var core_board_exam_pattern = new mongoose_1.Schema({
|
|
7
|
+
cbept_board_id_edbrd: {
|
|
8
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
9
|
+
ref: "core_education_board",
|
|
10
|
+
required: true,
|
|
11
|
+
comment: "Education Board ID"
|
|
12
|
+
},
|
|
13
|
+
cbept_academic_year_id_acayr: {
|
|
14
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
15
|
+
ref: "aca_academic_year",
|
|
16
|
+
required: true,
|
|
17
|
+
comment: "Academic Year ID - Exam pattern for this academic year"
|
|
18
|
+
},
|
|
19
|
+
cbept_pattern_name: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: true,
|
|
22
|
+
maxlength: 200,
|
|
23
|
+
trim: true,
|
|
24
|
+
comment: "Exam pattern name (e.g., 'CCE', 'Annual', 'Semester', 'Continuous Assessment')"
|
|
25
|
+
},
|
|
26
|
+
cbept_pattern_code: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: true,
|
|
29
|
+
maxlength: 50,
|
|
30
|
+
trim: true,
|
|
31
|
+
uppercase: true,
|
|
32
|
+
comment: "Exam pattern code (e.g., 'CCE', 'ANNUAL', 'SEMESTER', 'CONTINUOUS')"
|
|
33
|
+
},
|
|
34
|
+
cbept_pattern_type_sygms: {
|
|
35
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
36
|
+
ref: "core_general_master",
|
|
37
|
+
required: true,
|
|
38
|
+
comment: "Exam pattern type (Annual, Semester, CCE, Continuous, etc.) - Reference to core_general_master with type 'EXAM_PATTERN_TYPE'"
|
|
39
|
+
},
|
|
40
|
+
cbept_description: {
|
|
41
|
+
type: String,
|
|
42
|
+
maxlength: 500,
|
|
43
|
+
trim: true,
|
|
44
|
+
comment: "Description of the exam pattern"
|
|
45
|
+
},
|
|
46
|
+
cbept_active_from_date: {
|
|
47
|
+
type: Date,
|
|
48
|
+
required: true,
|
|
49
|
+
comment: "Date from which this exam pattern is active"
|
|
50
|
+
},
|
|
51
|
+
cbept_active_to_date: {
|
|
52
|
+
type: Date,
|
|
53
|
+
comment: "Date until which this exam pattern is active (NULL if currently active)"
|
|
54
|
+
},
|
|
55
|
+
cbept_is_current: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: true,
|
|
58
|
+
comment: "Is this the current active exam pattern for the board"
|
|
59
|
+
},
|
|
60
|
+
cbept_number_of_exams: {
|
|
61
|
+
type: Number,
|
|
62
|
+
min: 1,
|
|
63
|
+
max: 12,
|
|
64
|
+
comment: "Number of exams/assessments in this pattern (e.g., 2 for Annual, 4 for Semester)"
|
|
65
|
+
},
|
|
66
|
+
cbept_exam_structure: {
|
|
67
|
+
type: Object,
|
|
68
|
+
default: {},
|
|
69
|
+
comment: "Exam structure details (e.g., { exams: ['Unit Test 1', 'Unit Test 2', 'Mid Term', 'Final'], weights: [10, 10, 30, 50] })"
|
|
70
|
+
},
|
|
71
|
+
cbept_assessment_methods: {
|
|
72
|
+
type: [String],
|
|
73
|
+
default: [],
|
|
74
|
+
comment: "Assessment methods used (e.g., ['Written Exam', 'Practical', 'Project', 'Assignment'])"
|
|
75
|
+
},
|
|
76
|
+
cbept_grading_system_sygms: {
|
|
77
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
78
|
+
ref: "core_general_master",
|
|
79
|
+
comment: "Grading system used in this pattern (Percentage, CGPA, Letter Grade) - Reference to core_general_master with type 'EDUCATION_BOARD_GRADING_SYSTEM'"
|
|
80
|
+
},
|
|
81
|
+
cbept_pass_percentage: {
|
|
82
|
+
type: Number,
|
|
83
|
+
min: 0,
|
|
84
|
+
max: 100,
|
|
85
|
+
comment: "Minimum pass percentage for this pattern"
|
|
86
|
+
},
|
|
87
|
+
cbept_max_marks: {
|
|
88
|
+
type: Number,
|
|
89
|
+
min: 0,
|
|
90
|
+
comment: "Maximum marks for this exam pattern"
|
|
91
|
+
},
|
|
92
|
+
cbept_subject_wise_pattern: {
|
|
93
|
+
type: Object,
|
|
94
|
+
default: {},
|
|
95
|
+
comment: "Subject-wise exam pattern (e.g., { 'Mathematics': { theory: 80, practical: 20 }, 'Science': { theory: 60, practical: 40 } })"
|
|
96
|
+
},
|
|
97
|
+
cbept_stream_specific: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
default: false,
|
|
100
|
+
comment: "Is this pattern specific to a stream (Science, Commerce, Arts)"
|
|
101
|
+
},
|
|
102
|
+
cbept_streams: {
|
|
103
|
+
type: [String],
|
|
104
|
+
default: [],
|
|
105
|
+
comment: "Streams this pattern applies to (e.g., ['Science', 'Commerce', 'Arts'])"
|
|
106
|
+
},
|
|
107
|
+
cbept_level_specific: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: false,
|
|
110
|
+
comment: "Is this pattern specific to a level (Primary, Secondary, Higher Secondary)"
|
|
111
|
+
},
|
|
112
|
+
cbept_levels: {
|
|
113
|
+
type: [String],
|
|
114
|
+
default: [],
|
|
115
|
+
comment: "Levels this pattern applies to (e.g., ['Primary', 'Secondary', 'Higher Secondary'])"
|
|
116
|
+
},
|
|
117
|
+
cbept_configuration: {
|
|
118
|
+
type: Object,
|
|
119
|
+
default: {},
|
|
120
|
+
comment: "Additional configuration for this exam pattern (flexible JSON structure)"
|
|
121
|
+
},
|
|
122
|
+
cbept_notes: {
|
|
123
|
+
type: String,
|
|
124
|
+
maxlength: 1000,
|
|
125
|
+
trim: true,
|
|
126
|
+
comment: "Additional notes about this exam pattern"
|
|
127
|
+
},
|
|
128
|
+
cbept_isactive: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
default: true,
|
|
131
|
+
comment: "Exam pattern active status"
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
collection: 'core_board_exam_pattern',
|
|
135
|
+
timestamps: true
|
|
136
|
+
});
|
|
137
|
+
// Indexes for performance
|
|
138
|
+
core_board_exam_pattern.index({ cbept_board_id_edbrd: 1 });
|
|
139
|
+
core_board_exam_pattern.index({ cbept_academic_year_id_acayr: 1 });
|
|
140
|
+
core_board_exam_pattern.index({ cbept_board_id_edbrd: 1, cbept_academic_year_id_acayr: 1 });
|
|
141
|
+
core_board_exam_pattern.index({ cbept_is_current: 1 });
|
|
142
|
+
core_board_exam_pattern.index({ cbept_active_from_date: 1 });
|
|
143
|
+
core_board_exam_pattern.index({ cbept_active_to_date: 1 });
|
|
144
|
+
core_board_exam_pattern.index({ cbept_pattern_code: 1 });
|
|
145
|
+
core_board_exam_pattern.index({ cbept_isactive: 1 });
|
|
146
|
+
// Compound index for finding current active pattern
|
|
147
|
+
core_board_exam_pattern.index({
|
|
148
|
+
cbept_board_id_edbrd: 1,
|
|
149
|
+
cbept_is_current: 1,
|
|
150
|
+
cbept_isactive: 1
|
|
151
|
+
});
|
|
152
|
+
var CCoreBoardExamPattern = mongoose_1.default.model("core_board_exam_pattern", core_board_exam_pattern);
|
|
153
|
+
exports.CCoreBoardExamPattern = CCoreBoardExamPattern;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const CCoreBoardGradeSystem: 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 { CCoreBoardGradeSystem };
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CCoreBoardGradeSystem = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* SCHEMA START */
|
|
6
|
+
var core_board_grade_system = new mongoose_1.Schema({
|
|
7
|
+
cbgs_board_id_edbrd: {
|
|
8
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
9
|
+
ref: "core_education_board",
|
|
10
|
+
required: true,
|
|
11
|
+
comment: "Education Board ID"
|
|
12
|
+
},
|
|
13
|
+
cbgs_academic_year_id_acayr: {
|
|
14
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
15
|
+
ref: "aca_academic_year",
|
|
16
|
+
required: true,
|
|
17
|
+
comment: "Academic Year ID - Grade system for this academic year"
|
|
18
|
+
},
|
|
19
|
+
cbgs_grade_system_name: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: true,
|
|
22
|
+
maxlength: 200,
|
|
23
|
+
trim: true,
|
|
24
|
+
comment: "Grade system name (e.g., 'Percentage System', 'CGPA System', 'Letter Grade System', '9-Point Scale')"
|
|
25
|
+
},
|
|
26
|
+
cbgs_grade_system_code: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: true,
|
|
29
|
+
maxlength: 50,
|
|
30
|
+
trim: true,
|
|
31
|
+
uppercase: true,
|
|
32
|
+
comment: "Grade system code (e.g., 'PERCENTAGE', 'CGPA', 'LETTER_GRADE', '9_POINT_SCALE')"
|
|
33
|
+
},
|
|
34
|
+
cbgs_grade_system_type_sygms: {
|
|
35
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
36
|
+
ref: "core_general_master",
|
|
37
|
+
required: true,
|
|
38
|
+
comment: "Grade system type (Percentage, CGPA, Letter Grade, Both) - Reference to core_general_master with type 'EDUCATION_BOARD_GRADING_SYSTEM'"
|
|
39
|
+
},
|
|
40
|
+
cbgs_description: {
|
|
41
|
+
type: String,
|
|
42
|
+
maxlength: 500,
|
|
43
|
+
trim: true,
|
|
44
|
+
comment: "Description of the grade system"
|
|
45
|
+
},
|
|
46
|
+
cbgs_active_from_date: {
|
|
47
|
+
type: Date,
|
|
48
|
+
required: true,
|
|
49
|
+
comment: "Date from which this grade system is active"
|
|
50
|
+
},
|
|
51
|
+
cbgs_active_to_date: {
|
|
52
|
+
type: Date,
|
|
53
|
+
comment: "Date until which this grade system is active (NULL if currently active)"
|
|
54
|
+
},
|
|
55
|
+
cbgs_is_current: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: true,
|
|
58
|
+
comment: "Is this the current active grade system for the board"
|
|
59
|
+
},
|
|
60
|
+
cbgs_grade_scale: {
|
|
61
|
+
type: String,
|
|
62
|
+
required: true,
|
|
63
|
+
maxlength: 50,
|
|
64
|
+
trim: true,
|
|
65
|
+
comment: "Grade scale (e.g., '0-100', '0-10', 'A1-E', 'A-F', '1-9')"
|
|
66
|
+
},
|
|
67
|
+
cbgs_min_score: {
|
|
68
|
+
type: Number,
|
|
69
|
+
min: 0,
|
|
70
|
+
comment: "Minimum score in the grade system (e.g., 0 for percentage, 0 for CGPA)"
|
|
71
|
+
},
|
|
72
|
+
cbgs_max_score: {
|
|
73
|
+
type: Number,
|
|
74
|
+
required: true,
|
|
75
|
+
min: 0,
|
|
76
|
+
comment: "Maximum score in the grade system (e.g., 100 for percentage, 10 for CGPA, 9 for 9-point scale)"
|
|
77
|
+
},
|
|
78
|
+
cbgs_pass_score: {
|
|
79
|
+
type: Number,
|
|
80
|
+
min: 0,
|
|
81
|
+
comment: "Minimum pass score (e.g., 33 for percentage, 4.0 for CGPA)"
|
|
82
|
+
},
|
|
83
|
+
cbgs_grade_ranges: {
|
|
84
|
+
type: [{
|
|
85
|
+
grade: {
|
|
86
|
+
type: String,
|
|
87
|
+
required: true,
|
|
88
|
+
maxlength: 10,
|
|
89
|
+
trim: true,
|
|
90
|
+
comment: "Grade value (e.g., 'A1', 'A', 'B', 'C', '90-100', '9')"
|
|
91
|
+
},
|
|
92
|
+
grade_name: {
|
|
93
|
+
type: String,
|
|
94
|
+
maxlength: 100,
|
|
95
|
+
trim: true,
|
|
96
|
+
comment: "Grade name (e.g., 'Excellent', 'Very Good', 'Good', 'Pass')"
|
|
97
|
+
},
|
|
98
|
+
min_score: {
|
|
99
|
+
type: Number,
|
|
100
|
+
required: true,
|
|
101
|
+
min: 0,
|
|
102
|
+
comment: "Minimum score for this grade"
|
|
103
|
+
},
|
|
104
|
+
max_score: {
|
|
105
|
+
type: Number,
|
|
106
|
+
required: true,
|
|
107
|
+
min: 0,
|
|
108
|
+
comment: "Maximum score for this grade"
|
|
109
|
+
},
|
|
110
|
+
grade_point: {
|
|
111
|
+
type: Number,
|
|
112
|
+
min: 0,
|
|
113
|
+
comment: "Grade point value (for CGPA systems, e.g., 10, 9, 8)"
|
|
114
|
+
},
|
|
115
|
+
is_pass: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: true,
|
|
118
|
+
comment: "Is this grade a passing grade"
|
|
119
|
+
},
|
|
120
|
+
description: {
|
|
121
|
+
type: String,
|
|
122
|
+
maxlength: 200,
|
|
123
|
+
trim: true,
|
|
124
|
+
comment: "Description of this grade"
|
|
125
|
+
}
|
|
126
|
+
}],
|
|
127
|
+
default: [],
|
|
128
|
+
comment: "Grade ranges with min/max scores, grade points, and pass status"
|
|
129
|
+
},
|
|
130
|
+
cbgs_percentage_to_cgpa_formula: {
|
|
131
|
+
type: Object,
|
|
132
|
+
default: {},
|
|
133
|
+
comment: "Formula to convert percentage to CGPA (e.g., { formula: 'percentage/10', reverse: 'cgpa*10' })"
|
|
134
|
+
},
|
|
135
|
+
cbgs_cgpa_to_percentage_formula: {
|
|
136
|
+
type: Object,
|
|
137
|
+
default: {},
|
|
138
|
+
comment: "Formula to convert CGPA to percentage (e.g., { formula: 'cgpa*9.5', reverse: 'percentage/9.5' })"
|
|
139
|
+
},
|
|
140
|
+
cbgs_letter_grade_mapping: {
|
|
141
|
+
type: Object,
|
|
142
|
+
default: {},
|
|
143
|
+
comment: "Mapping of letter grades to scores (e.g., { 'A1': { min: 91, max: 100, points: 10 }, 'A2': { min: 81, max: 90, points: 9 } })"
|
|
144
|
+
},
|
|
145
|
+
cbgs_stream_specific: {
|
|
146
|
+
type: Boolean,
|
|
147
|
+
default: false,
|
|
148
|
+
comment: "Is this grade system specific to a stream (Science, Commerce, Arts)"
|
|
149
|
+
},
|
|
150
|
+
cbgs_streams: {
|
|
151
|
+
type: [String],
|
|
152
|
+
default: [],
|
|
153
|
+
comment: "Streams this grade system applies to (e.g., ['Science', 'Commerce', 'Arts'])"
|
|
154
|
+
},
|
|
155
|
+
cbgs_level_specific: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
default: false,
|
|
158
|
+
comment: "Is this grade system specific to a level (Primary, Secondary, Higher Secondary)"
|
|
159
|
+
},
|
|
160
|
+
cbgs_levels: {
|
|
161
|
+
type: [String],
|
|
162
|
+
default: [],
|
|
163
|
+
comment: "Levels this grade system applies to (e.g., ['Primary', 'Secondary', 'Higher Secondary'])"
|
|
164
|
+
},
|
|
165
|
+
cbgs_subject_wise_grading: {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: false,
|
|
168
|
+
comment: "Does this grade system support subject-wise grading"
|
|
169
|
+
},
|
|
170
|
+
cbgs_subject_grade_config: {
|
|
171
|
+
type: Object,
|
|
172
|
+
default: {},
|
|
173
|
+
comment: "Subject-wise grade configuration (e.g., { 'Mathematics': { max_marks: 100, pass_marks: 33 }, 'Science': { max_marks: 100, pass_marks: 33 } })"
|
|
174
|
+
},
|
|
175
|
+
cbgs_configuration: {
|
|
176
|
+
type: Object,
|
|
177
|
+
default: {},
|
|
178
|
+
comment: "Additional configuration for this grade system (flexible JSON structure)"
|
|
179
|
+
},
|
|
180
|
+
cbgs_notes: {
|
|
181
|
+
type: String,
|
|
182
|
+
maxlength: 1000,
|
|
183
|
+
trim: true,
|
|
184
|
+
comment: "Additional notes about this grade system"
|
|
185
|
+
},
|
|
186
|
+
cbgs_isactive: {
|
|
187
|
+
type: Boolean,
|
|
188
|
+
default: true,
|
|
189
|
+
comment: "Grade system active status"
|
|
190
|
+
}
|
|
191
|
+
}, {
|
|
192
|
+
collection: 'core_board_grade_system',
|
|
193
|
+
timestamps: true
|
|
194
|
+
});
|
|
195
|
+
// Indexes for performance
|
|
196
|
+
core_board_grade_system.index({ cbgs_board_id_edbrd: 1 });
|
|
197
|
+
core_board_grade_system.index({ cbgs_academic_year_id_acayr: 1 });
|
|
198
|
+
core_board_grade_system.index({ cbgs_board_id_edbrd: 1, cbgs_academic_year_id_acayr: 1 });
|
|
199
|
+
core_board_grade_system.index({ cbgs_is_current: 1 });
|
|
200
|
+
core_board_grade_system.index({ cbgs_active_from_date: 1 });
|
|
201
|
+
core_board_grade_system.index({ cbgs_active_to_date: 1 });
|
|
202
|
+
core_board_grade_system.index({ cbgs_grade_system_code: 1 });
|
|
203
|
+
core_board_grade_system.index({ cbgs_isactive: 1 });
|
|
204
|
+
// Compound index for finding current active grade system
|
|
205
|
+
core_board_grade_system.index({
|
|
206
|
+
cbgs_board_id_edbrd: 1,
|
|
207
|
+
cbgs_is_current: 1,
|
|
208
|
+
cbgs_isactive: 1
|
|
209
|
+
});
|
|
210
|
+
var CCoreBoardGradeSystem = mongoose_1.default.model("core_board_grade_system", core_board_grade_system);
|
|
211
|
+
exports.CCoreBoardGradeSystem = CCoreBoardGradeSystem;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const CCoreEducationBoard: 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 { CCoreEducationBoard };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CCoreEducationBoard = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* SCHEMA START */
|
|
6
|
+
var core_education_board = new mongoose_1.Schema({
|
|
7
|
+
edbrd_code: {
|
|
8
|
+
type: String,
|
|
9
|
+
required: true,
|
|
10
|
+
unique: true,
|
|
11
|
+
maxlength: 50,
|
|
12
|
+
trim: true,
|
|
13
|
+
uppercase: true,
|
|
14
|
+
comment: "Board code (e.g., CBSE, ICSE, MAH-SSC, KAR-SSC, etc.)"
|
|
15
|
+
},
|
|
16
|
+
edbrd_name: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true,
|
|
19
|
+
maxlength: 200,
|
|
20
|
+
trim: true,
|
|
21
|
+
comment: "Board name (e.g., Central Board of Secondary Education)"
|
|
22
|
+
},
|
|
23
|
+
edbrd_short_name: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: true,
|
|
26
|
+
maxlength: 50,
|
|
27
|
+
trim: true,
|
|
28
|
+
comment: "Short name (e.g., CBSE, ICSE, State Board)"
|
|
29
|
+
},
|
|
30
|
+
edbrd_type_sygms: {
|
|
31
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
32
|
+
ref: "core_general_master",
|
|
33
|
+
required: true,
|
|
34
|
+
comment: "Board type (National, State, International, Higher Education, Other) - Reference to core_general_master with type 'EDUCATION_BOARD_TYPE'"
|
|
35
|
+
},
|
|
36
|
+
edbrd_category_sygms: {
|
|
37
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
38
|
+
ref: "core_general_master",
|
|
39
|
+
required: true,
|
|
40
|
+
comment: "Board category (School, Higher Education, Both) - Reference to core_general_master with type 'EDUCATION_BOARD_CATEGORY'"
|
|
41
|
+
},
|
|
42
|
+
edbrd_state: {
|
|
43
|
+
type: String,
|
|
44
|
+
maxlength: 100,
|
|
45
|
+
trim: true,
|
|
46
|
+
comment: "State name (for state boards, e.g., Maharashtra, Karnataka)"
|
|
47
|
+
},
|
|
48
|
+
edbrd_country_id_syctr: {
|
|
49
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
50
|
+
ref: "core_system_country",
|
|
51
|
+
comment: "Country ID (default: India)"
|
|
52
|
+
},
|
|
53
|
+
edbrd_website: {
|
|
54
|
+
type: String,
|
|
55
|
+
maxlength: 255,
|
|
56
|
+
trim: true,
|
|
57
|
+
comment: "Board official website"
|
|
58
|
+
},
|
|
59
|
+
edbrd_contact_email: {
|
|
60
|
+
type: String,
|
|
61
|
+
maxlength: 255,
|
|
62
|
+
trim: true,
|
|
63
|
+
lowercase: true,
|
|
64
|
+
comment: "Board contact email"
|
|
65
|
+
},
|
|
66
|
+
edbrd_contact_phone: {
|
|
67
|
+
type: String,
|
|
68
|
+
maxlength: 50,
|
|
69
|
+
trim: true,
|
|
70
|
+
comment: "Board contact phone"
|
|
71
|
+
},
|
|
72
|
+
edbrd_address: {
|
|
73
|
+
type: String,
|
|
74
|
+
maxlength: 500,
|
|
75
|
+
trim: true,
|
|
76
|
+
comment: "Board address"
|
|
77
|
+
},
|
|
78
|
+
edbrd_udise_format: {
|
|
79
|
+
type: String,
|
|
80
|
+
maxlength: 50,
|
|
81
|
+
trim: true,
|
|
82
|
+
comment: "UDISE code format indicator (e.g., '11-digit' for boards that use UDISE, 'Not Applicable' for international boards). Note: UDISE is school-specific, not board-specific, but this field helps identify which boards typically use UDISE"
|
|
83
|
+
},
|
|
84
|
+
edbrd_affiliation_format: {
|
|
85
|
+
type: String,
|
|
86
|
+
maxlength: 50,
|
|
87
|
+
trim: true,
|
|
88
|
+
comment: "Affiliation number format (e.g., '10-digit' for CBSE, '12-digit' for State boards, 'ALPHA-NUMERIC' for ICSE). Used for validation, generation, and formatting of board affiliation numbers"
|
|
89
|
+
},
|
|
90
|
+
edbrd_roll_number_format: {
|
|
91
|
+
type: String,
|
|
92
|
+
maxlength: 100,
|
|
93
|
+
trim: true,
|
|
94
|
+
comment: "Roll number format pattern (e.g., 'YYYY-SCHOOL-XXX' for CBSE, 'SCHOOL-YYYY-XXX' for State boards, '6-digit' for ICSE). Used for validation, generation, and formatting of student roll numbers in board examinations"
|
|
95
|
+
},
|
|
96
|
+
edbrd_registration_number_format: {
|
|
97
|
+
type: String,
|
|
98
|
+
maxlength: 100,
|
|
99
|
+
trim: true,
|
|
100
|
+
comment: "Registration number format pattern (e.g., 'YYYY-REG-XXX' for CBSE, 'REG-YYYY-XXX' for State boards, '10-digit' for ICSE). Used for validation, generation, and formatting of student registration numbers with the board"
|
|
101
|
+
},
|
|
102
|
+
edbrd_grading_system_sygms: {
|
|
103
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
104
|
+
ref: "core_general_master",
|
|
105
|
+
comment: "Grading system (Percentage, CGPA, Letter Grade, Both) - Reference to core_general_master with type 'EDUCATION_BOARD_GRADING_SYSTEM'"
|
|
106
|
+
},
|
|
107
|
+
edbrd_grade_scale: {
|
|
108
|
+
type: String,
|
|
109
|
+
maxlength: 50,
|
|
110
|
+
trim: true,
|
|
111
|
+
comment: "Grade scale (e.g., 0-100, 0-10, A1-E, A-F)"
|
|
112
|
+
},
|
|
113
|
+
edbrd_configuration: {
|
|
114
|
+
type: Object,
|
|
115
|
+
default: {},
|
|
116
|
+
comment: "Board-specific configuration (subjects, streams, etc.) - Note: Exam patterns are managed in core_board_exam_pattern table"
|
|
117
|
+
},
|
|
118
|
+
edbrd_isactive: {
|
|
119
|
+
type: Boolean,
|
|
120
|
+
default: true,
|
|
121
|
+
comment: "Board active status"
|
|
122
|
+
}
|
|
123
|
+
}, { collection: 'core_education_board' });
|
|
124
|
+
// Indexes for performance
|
|
125
|
+
core_education_board.index({ edbrd_code: 1 });
|
|
126
|
+
core_education_board.index({ edbrd_type_sygms: 1 });
|
|
127
|
+
core_education_board.index({ edbrd_category_sygms: 1 });
|
|
128
|
+
core_education_board.index({ edbrd_state: 1 });
|
|
129
|
+
core_education_board.index({ edbrd_isactive: 1 });
|
|
130
|
+
var CCoreEducationBoard = mongoose_1.default.model("core_education_board", core_education_board);
|
|
131
|
+
exports.CCoreEducationBoard = CCoreEducationBoard;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const CCoreEntityUdise: 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 { CCoreEntityUdise };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CCoreEntityUdise = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* SCHEMA START */
|
|
6
|
+
var core_entity_udise = new mongoose_1.Schema({
|
|
7
|
+
syudise_entity_id_syen: {
|
|
8
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
9
|
+
ref: "core_system_entity",
|
|
10
|
+
required: true,
|
|
11
|
+
unique: true,
|
|
12
|
+
comment: "School/Entity ID - One UDISE record per entity"
|
|
13
|
+
},
|
|
14
|
+
syudise_code: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true,
|
|
17
|
+
maxlength: 50,
|
|
18
|
+
trim: true,
|
|
19
|
+
unique: true,
|
|
20
|
+
sparse: true,
|
|
21
|
+
comment: "11-digit UDISE code (Unified District Information System for Education)"
|
|
22
|
+
},
|
|
23
|
+
syudise_verified: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false,
|
|
26
|
+
comment: "UDISE code verification status"
|
|
27
|
+
},
|
|
28
|
+
syudise_verification_date: {
|
|
29
|
+
type: Date,
|
|
30
|
+
comment: "UDISE verification date"
|
|
31
|
+
},
|
|
32
|
+
syudise_verification_source_sygms: {
|
|
33
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
34
|
+
ref: "core_general_master",
|
|
35
|
+
comment: "UDISE verification source (UDISE Portal, Manual, API, Other) - Reference to core_general_master with type 'UDISE_VERIFICATION_SOURCE'"
|
|
36
|
+
},
|
|
37
|
+
syudise_verification_notes: {
|
|
38
|
+
type: String,
|
|
39
|
+
maxlength: 500,
|
|
40
|
+
trim: true,
|
|
41
|
+
comment: "Notes about UDISE verification"
|
|
42
|
+
},
|
|
43
|
+
syudise_state_code: {
|
|
44
|
+
type: String,
|
|
45
|
+
maxlength: 10,
|
|
46
|
+
trim: true,
|
|
47
|
+
comment: "State code extracted from UDISE (positions 1-2)"
|
|
48
|
+
},
|
|
49
|
+
syudise_district_code: {
|
|
50
|
+
type: String,
|
|
51
|
+
maxlength: 10,
|
|
52
|
+
trim: true,
|
|
53
|
+
comment: "District code extracted from UDISE (positions 3-4)"
|
|
54
|
+
},
|
|
55
|
+
syudise_block_code: {
|
|
56
|
+
type: String,
|
|
57
|
+
maxlength: 10,
|
|
58
|
+
trim: true,
|
|
59
|
+
comment: "Block code extracted from UDISE (positions 5-6)"
|
|
60
|
+
},
|
|
61
|
+
syudise_school_code: {
|
|
62
|
+
type: String,
|
|
63
|
+
maxlength: 10,
|
|
64
|
+
trim: true,
|
|
65
|
+
comment: "School code extracted from UDISE (positions 7-9)"
|
|
66
|
+
},
|
|
67
|
+
syudise_check_digits: {
|
|
68
|
+
type: String,
|
|
69
|
+
maxlength: 10,
|
|
70
|
+
trim: true,
|
|
71
|
+
comment: "Check digits extracted from UDISE (positions 10-11)"
|
|
72
|
+
},
|
|
73
|
+
syudise_last_synced_date: {
|
|
74
|
+
type: Date,
|
|
75
|
+
comment: "Last date when UDISE data was synced from UDISE portal"
|
|
76
|
+
},
|
|
77
|
+
syudise_sync_status: {
|
|
78
|
+
type: String,
|
|
79
|
+
maxlength: 50,
|
|
80
|
+
trim: true,
|
|
81
|
+
enum: ["Not Synced", "Synced", "Sync Failed", "Pending"],
|
|
82
|
+
default: "Not Synced",
|
|
83
|
+
comment: "UDISE data sync status"
|
|
84
|
+
},
|
|
85
|
+
syudise_sync_error: {
|
|
86
|
+
type: String,
|
|
87
|
+
maxlength: 500,
|
|
88
|
+
trim: true,
|
|
89
|
+
comment: "Error message if UDISE sync failed"
|
|
90
|
+
},
|
|
91
|
+
syudise_metadata: {
|
|
92
|
+
type: Object,
|
|
93
|
+
default: {},
|
|
94
|
+
comment: "Additional UDISE metadata from UDISE portal (school type, management, etc.)"
|
|
95
|
+
},
|
|
96
|
+
syudise_isactive: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: true,
|
|
99
|
+
comment: "UDISE record active status"
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
collection: 'core_entity_udise',
|
|
103
|
+
timestamps: true
|
|
104
|
+
});
|
|
105
|
+
// Indexes for performance
|
|
106
|
+
core_entity_udise.index({ syudise_entity_id_syen: 1 });
|
|
107
|
+
core_entity_udise.index({ syudise_code: 1 });
|
|
108
|
+
core_entity_udise.index({ syudise_verified: 1 });
|
|
109
|
+
core_entity_udise.index({ syudise_state_code: 1 });
|
|
110
|
+
core_entity_udise.index({ syudise_district_code: 1 });
|
|
111
|
+
core_entity_udise.index({ syudise_sync_status: 1 });
|
|
112
|
+
core_entity_udise.index({ syudise_isactive: 1 });
|
|
113
|
+
var CCoreEntityUdise = mongoose_1.default.model("core_entity_udise", core_entity_udise);
|
|
114
|
+
exports.CCoreEntityUdise = CCoreEntityUdise;
|