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,23 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const CAdmissionDocumentUploads: 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 { CAdmissionDocumentUploads };
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CAdmissionDocumentUploads = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* SCHEMA START */
|
|
6
|
+
var admission_document_uploads = new mongoose_1.Schema({
|
|
7
|
+
// FOREIGN KEY TO MAIN APPLICATION
|
|
8
|
+
addu_application_id_admap: {
|
|
9
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
10
|
+
ref: "admission_application_main",
|
|
11
|
+
required: true,
|
|
12
|
+
comment: "Foreign key to admission_application_main"
|
|
13
|
+
},
|
|
14
|
+
// DOCUMENT DETAILS
|
|
15
|
+
addu_document_type: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: true,
|
|
18
|
+
maxlength: 100,
|
|
19
|
+
trim: true,
|
|
20
|
+
enum: [
|
|
21
|
+
"Transcript",
|
|
22
|
+
"Report Card",
|
|
23
|
+
"Birth Certificate",
|
|
24
|
+
"Passport",
|
|
25
|
+
"Identity Document",
|
|
26
|
+
"Letter of Recommendation 1",
|
|
27
|
+
"Letter of Recommendation 2",
|
|
28
|
+
"Teacher Recommendation",
|
|
29
|
+
"Portfolio",
|
|
30
|
+
"Personal Statement",
|
|
31
|
+
"Immunization Record",
|
|
32
|
+
"Medical Clearance",
|
|
33
|
+
"Custody Document",
|
|
34
|
+
"Residency Proof",
|
|
35
|
+
"Financial Aid Document",
|
|
36
|
+
"Scholarship Application",
|
|
37
|
+
"Other"
|
|
38
|
+
],
|
|
39
|
+
comment: "Type of document"
|
|
40
|
+
},
|
|
41
|
+
addu_document_name: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: true,
|
|
44
|
+
maxlength: 255,
|
|
45
|
+
trim: true,
|
|
46
|
+
comment: "Name/description of the document"
|
|
47
|
+
},
|
|
48
|
+
addu_file_id_cyfm: {
|
|
49
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
50
|
+
ref: "core_file_manager",
|
|
51
|
+
required: true,
|
|
52
|
+
comment: "File manager ID for the uploaded document"
|
|
53
|
+
},
|
|
54
|
+
addu_file_name: {
|
|
55
|
+
type: String,
|
|
56
|
+
required: true,
|
|
57
|
+
maxlength: 255,
|
|
58
|
+
trim: true,
|
|
59
|
+
comment: "Original file name"
|
|
60
|
+
},
|
|
61
|
+
addu_file_size: {
|
|
62
|
+
type: Number,
|
|
63
|
+
required: true,
|
|
64
|
+
min: 0,
|
|
65
|
+
comment: "File size in bytes"
|
|
66
|
+
},
|
|
67
|
+
addu_file_type: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: true,
|
|
70
|
+
maxlength: 50,
|
|
71
|
+
trim: true,
|
|
72
|
+
comment: "File MIME type (e.g., application/pdf, image/jpeg)"
|
|
73
|
+
},
|
|
74
|
+
addu_file_path: {
|
|
75
|
+
type: String,
|
|
76
|
+
required: true,
|
|
77
|
+
maxlength: 500,
|
|
78
|
+
trim: true,
|
|
79
|
+
comment: "File storage path"
|
|
80
|
+
},
|
|
81
|
+
addu_upload_date: {
|
|
82
|
+
type: Date,
|
|
83
|
+
required: true,
|
|
84
|
+
default: Date.now,
|
|
85
|
+
comment: "Date when document was uploaded"
|
|
86
|
+
},
|
|
87
|
+
addu_uploaded_by_user: {
|
|
88
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
89
|
+
ref: "auth_user_mst",
|
|
90
|
+
comment: "User who uploaded the document"
|
|
91
|
+
},
|
|
92
|
+
// DOCUMENT VERIFICATION
|
|
93
|
+
addu_verification_status: {
|
|
94
|
+
type: String,
|
|
95
|
+
required: true,
|
|
96
|
+
maxlength: 50,
|
|
97
|
+
trim: true,
|
|
98
|
+
enum: ["Pending", "Verified", "Rejected", "Under Review"],
|
|
99
|
+
default: "Pending",
|
|
100
|
+
comment: "Verification status of the document"
|
|
101
|
+
},
|
|
102
|
+
addu_verification_date: {
|
|
103
|
+
type: Date,
|
|
104
|
+
comment: "Date when document was verified"
|
|
105
|
+
},
|
|
106
|
+
addu_verified_by_user: {
|
|
107
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
108
|
+
ref: "auth_user_mst",
|
|
109
|
+
comment: "User who verified the document"
|
|
110
|
+
},
|
|
111
|
+
addu_verification_notes: {
|
|
112
|
+
type: String,
|
|
113
|
+
maxlength: 500,
|
|
114
|
+
trim: true,
|
|
115
|
+
comment: "Verification notes"
|
|
116
|
+
},
|
|
117
|
+
addu_rejection_reason: {
|
|
118
|
+
type: String,
|
|
119
|
+
maxlength: 500,
|
|
120
|
+
trim: true,
|
|
121
|
+
comment: "Reason for rejection (if applicable)"
|
|
122
|
+
},
|
|
123
|
+
// DOCUMENT SPECIFIC FIELDS
|
|
124
|
+
addu_document_issue_date: {
|
|
125
|
+
type: Date,
|
|
126
|
+
comment: "Issue date of the document (if applicable)"
|
|
127
|
+
},
|
|
128
|
+
addu_document_expiry_date: {
|
|
129
|
+
type: Date,
|
|
130
|
+
comment: "Expiry date of the document (if applicable)"
|
|
131
|
+
},
|
|
132
|
+
addu_document_number: {
|
|
133
|
+
type: String,
|
|
134
|
+
maxlength: 100,
|
|
135
|
+
trim: true,
|
|
136
|
+
comment: "Document number (e.g., passport number, certificate number)"
|
|
137
|
+
},
|
|
138
|
+
addu_issuing_authority: {
|
|
139
|
+
type: String,
|
|
140
|
+
maxlength: 255,
|
|
141
|
+
trim: true,
|
|
142
|
+
comment: "Issuing authority (e.g., school name, government agency)"
|
|
143
|
+
},
|
|
144
|
+
addu_recommender_name: {
|
|
145
|
+
type: String,
|
|
146
|
+
maxlength: 255,
|
|
147
|
+
trim: true,
|
|
148
|
+
comment: "Recommender name (for recommendation letters)"
|
|
149
|
+
},
|
|
150
|
+
addu_recommender_type: {
|
|
151
|
+
type: String,
|
|
152
|
+
maxlength: 100,
|
|
153
|
+
trim: true,
|
|
154
|
+
enum: ["Teacher", "Principal", "Counselor", "Employer", "Other"],
|
|
155
|
+
comment: "Recommender type (for recommendation letters)"
|
|
156
|
+
},
|
|
157
|
+
addu_recommender_email: {
|
|
158
|
+
type: String,
|
|
159
|
+
maxlength: 255,
|
|
160
|
+
trim: true,
|
|
161
|
+
lowercase: true,
|
|
162
|
+
comment: "Recommender email (for recommendation letters)"
|
|
163
|
+
},
|
|
164
|
+
addu_year: {
|
|
165
|
+
type: String,
|
|
166
|
+
maxlength: 50,
|
|
167
|
+
trim: true,
|
|
168
|
+
comment: "Year (for report cards, transcripts)"
|
|
169
|
+
},
|
|
170
|
+
addu_grade_level: {
|
|
171
|
+
type: String,
|
|
172
|
+
maxlength: 50,
|
|
173
|
+
trim: true,
|
|
174
|
+
comment: "Grade level (for report cards, transcripts)"
|
|
175
|
+
},
|
|
176
|
+
// METADATA
|
|
177
|
+
addu_notes: {
|
|
178
|
+
type: String,
|
|
179
|
+
maxlength: 1000,
|
|
180
|
+
trim: true,
|
|
181
|
+
comment: "Additional notes about the document"
|
|
182
|
+
},
|
|
183
|
+
addu_is_required: {
|
|
184
|
+
type: Boolean,
|
|
185
|
+
default: true,
|
|
186
|
+
comment: "Whether this document is required"
|
|
187
|
+
},
|
|
188
|
+
addu_is_optional: {
|
|
189
|
+
type: Boolean,
|
|
190
|
+
default: false,
|
|
191
|
+
comment: "Whether this document is optional"
|
|
192
|
+
},
|
|
193
|
+
addu_created_date: {
|
|
194
|
+
type: Date,
|
|
195
|
+
default: Date.now
|
|
196
|
+
},
|
|
197
|
+
addu_modified_date: {
|
|
198
|
+
type: Date,
|
|
199
|
+
default: Date.now
|
|
200
|
+
},
|
|
201
|
+
addu_isactive: {
|
|
202
|
+
type: Boolean,
|
|
203
|
+
default: true
|
|
204
|
+
}
|
|
205
|
+
}, {
|
|
206
|
+
collection: 'admission_document_uploads',
|
|
207
|
+
timestamps: true
|
|
208
|
+
});
|
|
209
|
+
// Indexes for performance
|
|
210
|
+
admission_document_uploads.index({ addu_application_id_admap: 1 });
|
|
211
|
+
admission_document_uploads.index({ addu_document_type: 1 });
|
|
212
|
+
admission_document_uploads.index({ addu_verification_status: 1 });
|
|
213
|
+
admission_document_uploads.index({ addu_file_id_cyfm: 1 });
|
|
214
|
+
admission_document_uploads.index({ addu_upload_date: -1 });
|
|
215
|
+
var CAdmissionDocumentUploads = mongoose_1.default.model("admission_document_uploads", admission_document_uploads);
|
|
216
|
+
exports.CAdmissionDocumentUploads = CAdmissionDocumentUploads;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const CAdmissionElectiveDetail: 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 { CAdmissionElectiveDetail };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CAdmissionElectiveDetail = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* SCHEMA START */
|
|
6
|
+
var admission_elective_detail = new mongoose_1.Schema({
|
|
7
|
+
// FOREIGN KEY TO MAIN APPLICATION
|
|
8
|
+
adme_application_id_admap: {
|
|
9
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
10
|
+
ref: "admission_application_main",
|
|
11
|
+
required: true,
|
|
12
|
+
comment: "Foreign key to admission_application_main"
|
|
13
|
+
},
|
|
14
|
+
// ELECTIVE SELECTION DETAILS
|
|
15
|
+
adme_priority: {
|
|
16
|
+
type: Number,
|
|
17
|
+
required: true,
|
|
18
|
+
min: 1,
|
|
19
|
+
max: 20,
|
|
20
|
+
comment: "Priority order (1st choice, 2nd choice, etc.)"
|
|
21
|
+
},
|
|
22
|
+
adme_subject_code: {
|
|
23
|
+
type: String,
|
|
24
|
+
required: true,
|
|
25
|
+
maxlength: 50,
|
|
26
|
+
trim: true,
|
|
27
|
+
comment: "Unique identifier for the selected course/subject"
|
|
28
|
+
},
|
|
29
|
+
adme_subject_name: {
|
|
30
|
+
type: String,
|
|
31
|
+
required: true,
|
|
32
|
+
maxlength: 200,
|
|
33
|
+
trim: true,
|
|
34
|
+
comment: "Name of the selected course/subject"
|
|
35
|
+
},
|
|
36
|
+
adme_subject_type: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: true,
|
|
39
|
+
maxlength: 100,
|
|
40
|
+
trim: true,
|
|
41
|
+
enum: ["Elective", "Advanced Placement", "Honors", "Major Core", "Major Elective", "General Education", "Core", "Other"],
|
|
42
|
+
comment: "Type of subject/course"
|
|
43
|
+
},
|
|
44
|
+
adme_credits: {
|
|
45
|
+
type: Number,
|
|
46
|
+
min: 0,
|
|
47
|
+
max: 10,
|
|
48
|
+
default: 0,
|
|
49
|
+
comment: "Number of credits for the course"
|
|
50
|
+
},
|
|
51
|
+
adme_status: {
|
|
52
|
+
type: String,
|
|
53
|
+
required: true,
|
|
54
|
+
maxlength: 50,
|
|
55
|
+
trim: true,
|
|
56
|
+
enum: ["Pending", "Approved", "Rejected", "Waitlisted", "Alternative"],
|
|
57
|
+
default: "Pending",
|
|
58
|
+
comment: "Status of elective selection"
|
|
59
|
+
},
|
|
60
|
+
adme_approval_date: {
|
|
61
|
+
type: Date,
|
|
62
|
+
comment: "Date when elective was approved"
|
|
63
|
+
},
|
|
64
|
+
adme_approved_by_user: {
|
|
65
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
66
|
+
ref: "auth_user_mst",
|
|
67
|
+
comment: "User who approved the elective selection"
|
|
68
|
+
},
|
|
69
|
+
adme_rejection_reason: {
|
|
70
|
+
type: String,
|
|
71
|
+
maxlength: 500,
|
|
72
|
+
trim: true,
|
|
73
|
+
comment: "Reason for rejection (if applicable)"
|
|
74
|
+
},
|
|
75
|
+
adme_prerequisites_met: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: false,
|
|
78
|
+
comment: "Whether prerequisites are met"
|
|
79
|
+
},
|
|
80
|
+
adme_prerequisites_notes: {
|
|
81
|
+
type: String,
|
|
82
|
+
maxlength: 500,
|
|
83
|
+
trim: true,
|
|
84
|
+
comment: "Notes about prerequisites"
|
|
85
|
+
},
|
|
86
|
+
adme_alternative_subject_code: {
|
|
87
|
+
type: String,
|
|
88
|
+
maxlength: 50,
|
|
89
|
+
trim: true,
|
|
90
|
+
comment: "Alternative subject code if primary is not available"
|
|
91
|
+
},
|
|
92
|
+
adme_alternative_subject_name: {
|
|
93
|
+
type: String,
|
|
94
|
+
maxlength: 200,
|
|
95
|
+
trim: true,
|
|
96
|
+
comment: "Alternative subject name if primary is not available"
|
|
97
|
+
},
|
|
98
|
+
adme_notes: {
|
|
99
|
+
type: String,
|
|
100
|
+
maxlength: 1000,
|
|
101
|
+
trim: true,
|
|
102
|
+
comment: "Additional notes about the elective selection"
|
|
103
|
+
},
|
|
104
|
+
// METADATA
|
|
105
|
+
adme_created_date: {
|
|
106
|
+
type: Date,
|
|
107
|
+
default: Date.now
|
|
108
|
+
},
|
|
109
|
+
adme_modified_date: {
|
|
110
|
+
type: Date,
|
|
111
|
+
default: Date.now
|
|
112
|
+
},
|
|
113
|
+
adme_isactive: {
|
|
114
|
+
type: Boolean,
|
|
115
|
+
default: true
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
collection: 'admission_elective_detail',
|
|
119
|
+
timestamps: true
|
|
120
|
+
});
|
|
121
|
+
// Indexes for performance
|
|
122
|
+
admission_elective_detail.index({ adme_application_id_admap: 1 });
|
|
123
|
+
admission_elective_detail.index({ adme_priority: 1 });
|
|
124
|
+
admission_elective_detail.index({ adme_subject_code: 1 });
|
|
125
|
+
admission_elective_detail.index({ adme_status: 1 });
|
|
126
|
+
var CAdmissionElectiveDetail = mongoose_1.default.model("admission_elective_detail", admission_elective_detail);
|
|
127
|
+
exports.CAdmissionElectiveDetail = CAdmissionElectiveDetail;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const CAdmissionStatusHistory: 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 { CAdmissionStatusHistory };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CAdmissionStatusHistory = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* SCHEMA START */
|
|
6
|
+
var admission_status_history = new mongoose_1.Schema({
|
|
7
|
+
// FOREIGN KEY TO MAIN APPLICATION
|
|
8
|
+
adsh_application_id_admap: {
|
|
9
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
10
|
+
ref: "admission_application_main",
|
|
11
|
+
required: true,
|
|
12
|
+
comment: "Foreign key to admission_application_main"
|
|
13
|
+
},
|
|
14
|
+
// STATUS CHANGE DETAILS
|
|
15
|
+
adsh_status_from: {
|
|
16
|
+
type: String,
|
|
17
|
+
maxlength: 50,
|
|
18
|
+
trim: true,
|
|
19
|
+
comment: "Previous status"
|
|
20
|
+
},
|
|
21
|
+
adsh_status_to: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: true,
|
|
24
|
+
maxlength: 50,
|
|
25
|
+
trim: true,
|
|
26
|
+
enum: ["Draft", "Submitted", "Under Review", "Interview Scheduled", "Accepted", "Waitlisted", "Rejected", "Withdrawn"],
|
|
27
|
+
comment: "New status"
|
|
28
|
+
},
|
|
29
|
+
adsh_status_change_date: {
|
|
30
|
+
type: Date,
|
|
31
|
+
required: true,
|
|
32
|
+
default: Date.now,
|
|
33
|
+
comment: "Date when status was changed"
|
|
34
|
+
},
|
|
35
|
+
adsh_status_change_reason: {
|
|
36
|
+
type: String,
|
|
37
|
+
maxlength: 500,
|
|
38
|
+
trim: true,
|
|
39
|
+
comment: "Reason for status change"
|
|
40
|
+
},
|
|
41
|
+
adsh_status_change_notes: {
|
|
42
|
+
type: String,
|
|
43
|
+
maxlength: 1000,
|
|
44
|
+
trim: true,
|
|
45
|
+
comment: "Additional notes about the status change"
|
|
46
|
+
},
|
|
47
|
+
adsh_changed_by_user: {
|
|
48
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
49
|
+
ref: "auth_user_mst",
|
|
50
|
+
required: true,
|
|
51
|
+
comment: "User who changed the status"
|
|
52
|
+
},
|
|
53
|
+
adsh_notification_sent: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false,
|
|
56
|
+
comment: "Whether notification was sent for this status change"
|
|
57
|
+
},
|
|
58
|
+
adsh_notification_sent_date: {
|
|
59
|
+
type: Date,
|
|
60
|
+
comment: "Date when notification was sent"
|
|
61
|
+
},
|
|
62
|
+
adsh_email_sent: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: false,
|
|
65
|
+
comment: "Whether email was sent for this status change"
|
|
66
|
+
},
|
|
67
|
+
adsh_sms_sent: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false,
|
|
70
|
+
comment: "Whether SMS was sent for this status change"
|
|
71
|
+
},
|
|
72
|
+
// INTERVIEW SPECIFIC FIELDS
|
|
73
|
+
adsh_interview_scheduled_date: {
|
|
74
|
+
type: Date,
|
|
75
|
+
comment: "Interview scheduled date (if status is Interview Scheduled)"
|
|
76
|
+
},
|
|
77
|
+
adsh_interview_completed_date: {
|
|
78
|
+
type: Date,
|
|
79
|
+
comment: "Interview completed date"
|
|
80
|
+
},
|
|
81
|
+
adsh_interview_notes: {
|
|
82
|
+
type: String,
|
|
83
|
+
maxlength: 1000,
|
|
84
|
+
trim: true,
|
|
85
|
+
comment: "Interview notes"
|
|
86
|
+
},
|
|
87
|
+
adsh_interviewer_user: {
|
|
88
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
89
|
+
ref: "auth_user_mst",
|
|
90
|
+
comment: "User who conducted the interview"
|
|
91
|
+
},
|
|
92
|
+
// DECISION SPECIFIC FIELDS
|
|
93
|
+
adsh_decision_date: {
|
|
94
|
+
type: Date,
|
|
95
|
+
comment: "Decision date (if status is Accepted/Rejected/Waitlisted)"
|
|
96
|
+
},
|
|
97
|
+
adsh_decision_notes: {
|
|
98
|
+
type: String,
|
|
99
|
+
maxlength: 1000,
|
|
100
|
+
trim: true,
|
|
101
|
+
comment: "Decision notes"
|
|
102
|
+
},
|
|
103
|
+
adsh_waitlist_position: {
|
|
104
|
+
type: Number,
|
|
105
|
+
min: 0,
|
|
106
|
+
comment: "Waitlist position (if status is Waitlisted)"
|
|
107
|
+
},
|
|
108
|
+
adsh_rejection_reason: {
|
|
109
|
+
type: String,
|
|
110
|
+
maxlength: 500,
|
|
111
|
+
trim: true,
|
|
112
|
+
comment: "Rejection reason (if status is Rejected)"
|
|
113
|
+
},
|
|
114
|
+
// METADATA
|
|
115
|
+
adsh_created_date: {
|
|
116
|
+
type: Date,
|
|
117
|
+
default: Date.now
|
|
118
|
+
},
|
|
119
|
+
adsh_isactive: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
default: true
|
|
122
|
+
}
|
|
123
|
+
}, {
|
|
124
|
+
collection: 'admission_status_history',
|
|
125
|
+
timestamps: true
|
|
126
|
+
});
|
|
127
|
+
// Indexes for performance
|
|
128
|
+
admission_status_history.index({ adsh_application_id_admap: 1 });
|
|
129
|
+
admission_status_history.index({ adsh_status_to: 1 });
|
|
130
|
+
admission_status_history.index({ adsh_status_change_date: -1 });
|
|
131
|
+
admission_status_history.index({ adsh_changed_by_user: 1 });
|
|
132
|
+
var CAdmissionStatusHistory = mongoose_1.default.model("admission_status_history", admission_status_history);
|
|
133
|
+
exports.CAdmissionStatusHistory = CAdmissionStatusHistory;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./admission_application_main"), exports);
|
|
18
|
+
__exportStar(require("./admission_elective_detail"), exports);
|
|
19
|
+
__exportStar(require("./admission_status_history"), exports);
|
|
20
|
+
__exportStar(require("./admission_document_uploads"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
declare const CCoreBoardExamPattern: 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 { CCoreBoardExamPattern };
|