cloud-ide-model-schema 1.1.123 → 1.1.125
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 +1 -2
- package/lib/schema/core/core_entity_udise.js +1 -2
- package/lib/schema/core/core_system_nationality.js +1 -1
- package/lib/schema/fees/fee_structure.js +1 -1
- package/lib/schema/fees/fee_structure_item.d.ts +8 -0
- package/lib/schema/fees/fee_structure_item.js +134 -0
- package/lib/schema/fees/index.d.ts +1 -0
- package/lib/schema/fees/index.js +1 -0
- package/package.json +1 -1
|
@@ -992,8 +992,7 @@ var admission_application_main = new mongoose_1.Schema({
|
|
|
992
992
|
timestamps: true
|
|
993
993
|
});
|
|
994
994
|
// Indexes for performance
|
|
995
|
-
|
|
996
|
-
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
|
|
997
996
|
admission_application_main.index({ admap_entity_id_syen: 1 });
|
|
998
997
|
admission_application_main.index({ admap_application_status_id_sygms: 1 });
|
|
999
998
|
admission_application_main.index({ admap_status_id_sygms: 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
|
-
|
|
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,8 @@
|
|
|
1
|
+
import { FeeStructureItem } from "cloud-ide-lms-model";
|
|
2
|
+
import mongoose from "mongoose";
|
|
3
|
+
declare const CFeeStructureItem: mongoose.Model<FeeStructureItem, {}, {}, {}, mongoose.Document<unknown, {}, FeeStructureItem, {}> & FeeStructureItem & Required<{
|
|
4
|
+
_id: string;
|
|
5
|
+
}> & {
|
|
6
|
+
__v: number;
|
|
7
|
+
}, any>;
|
|
8
|
+
export { CFeeStructureItem };
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CFeeStructureItem = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* SCHEMA START */
|
|
6
|
+
var fee_structure_item = new mongoose_1.Schema({
|
|
7
|
+
feesi_structure_id_fees: {
|
|
8
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
9
|
+
ref: "fee_structures",
|
|
10
|
+
required: true,
|
|
11
|
+
comment: "Fee structure this item belongs to"
|
|
12
|
+
},
|
|
13
|
+
feesi_category_id_sygms: {
|
|
14
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
15
|
+
ref: "core_general_master",
|
|
16
|
+
required: true,
|
|
17
|
+
comment: "Fee category from general master (Tuition, Library, Lab, Sports, Transport, Hostel, etc.)"
|
|
18
|
+
},
|
|
19
|
+
feesi_item_code: {
|
|
20
|
+
type: String,
|
|
21
|
+
maxlength: 50,
|
|
22
|
+
trim: true,
|
|
23
|
+
comment: "Fee item code (auto-populated from category config)"
|
|
24
|
+
},
|
|
25
|
+
feesi_item_name: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: true,
|
|
28
|
+
minlength: 1,
|
|
29
|
+
maxlength: 200,
|
|
30
|
+
trim: true,
|
|
31
|
+
comment: "Fee item name (auto-populated from category title)"
|
|
32
|
+
},
|
|
33
|
+
feesi_description: {
|
|
34
|
+
type: String,
|
|
35
|
+
maxlength: 500,
|
|
36
|
+
trim: true,
|
|
37
|
+
comment: "Fee item description"
|
|
38
|
+
},
|
|
39
|
+
feesi_amount: {
|
|
40
|
+
type: Number,
|
|
41
|
+
required: true,
|
|
42
|
+
min: 0,
|
|
43
|
+
comment: "Fee amount (default/base amount)"
|
|
44
|
+
},
|
|
45
|
+
feesi_is_amount_editable: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false,
|
|
48
|
+
comment: "Allow amount to be edited when applying to student (e.g., transport fee based on distance)"
|
|
49
|
+
},
|
|
50
|
+
feesi_min_amount: {
|
|
51
|
+
type: Number,
|
|
52
|
+
default: null,
|
|
53
|
+
min: 0,
|
|
54
|
+
comment: "Minimum amount allowed if editable (null = no minimum)"
|
|
55
|
+
},
|
|
56
|
+
feesi_max_amount: {
|
|
57
|
+
type: Number,
|
|
58
|
+
default: null,
|
|
59
|
+
min: 0,
|
|
60
|
+
comment: "Maximum amount allowed if editable (null = no maximum)"
|
|
61
|
+
},
|
|
62
|
+
feesi_due_date: {
|
|
63
|
+
type: Date,
|
|
64
|
+
default: null,
|
|
65
|
+
comment: "Fixed due date (alternative to offset)"
|
|
66
|
+
},
|
|
67
|
+
feesi_due_date_offset_days: {
|
|
68
|
+
type: Number,
|
|
69
|
+
default: 0,
|
|
70
|
+
comment: "Days from start of term/year"
|
|
71
|
+
},
|
|
72
|
+
feesi_collection_start_offset_days: {
|
|
73
|
+
type: Number,
|
|
74
|
+
default: 0,
|
|
75
|
+
comment: "Collection window start offset"
|
|
76
|
+
},
|
|
77
|
+
feesi_collection_end_offset_days: {
|
|
78
|
+
type: Number,
|
|
79
|
+
default: 30,
|
|
80
|
+
comment: "Collection window end offset"
|
|
81
|
+
},
|
|
82
|
+
feesi_is_mandatory: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: true,
|
|
85
|
+
comment: "Is this fee mandatory"
|
|
86
|
+
},
|
|
87
|
+
feesi_is_refundable: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: false,
|
|
90
|
+
comment: "Is this fee refundable"
|
|
91
|
+
},
|
|
92
|
+
feesi_is_installment_allowed: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false,
|
|
95
|
+
comment: "Allow installments for this fee"
|
|
96
|
+
},
|
|
97
|
+
feesi_installment_count: {
|
|
98
|
+
type: Number,
|
|
99
|
+
default: 1,
|
|
100
|
+
min: 1,
|
|
101
|
+
comment: "Number of installments if allowed"
|
|
102
|
+
},
|
|
103
|
+
feesi_tax_applicable: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: false,
|
|
106
|
+
comment: "Is tax applicable"
|
|
107
|
+
},
|
|
108
|
+
feesi_tax_percentage: {
|
|
109
|
+
type: Number,
|
|
110
|
+
default: 0,
|
|
111
|
+
min: 0,
|
|
112
|
+
max: 100,
|
|
113
|
+
comment: "Tax percentage if applicable"
|
|
114
|
+
},
|
|
115
|
+
feesi_display_order: {
|
|
116
|
+
type: Number,
|
|
117
|
+
default: 0,
|
|
118
|
+
comment: "Display order in list"
|
|
119
|
+
},
|
|
120
|
+
feesi_is_active: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: true,
|
|
123
|
+
comment: "Active status flag"
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
collection: 'fee_structure_items',
|
|
127
|
+
timestamps: false
|
|
128
|
+
});
|
|
129
|
+
// Indexes for performance
|
|
130
|
+
fee_structure_item.index({ feesi_structure_id_fees: 1 });
|
|
131
|
+
fee_structure_item.index({ feesi_category_id_sygms: 1 });
|
|
132
|
+
fee_structure_item.index({ feesi_structure_id_fees: 1, feesi_display_order: 1 });
|
|
133
|
+
var CFeeStructureItem = mongoose_1.default.model("fee_structure_items", fee_structure_item);
|
|
134
|
+
exports.CFeeStructureItem = CFeeStructureItem;
|
package/lib/schema/fees/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./fee_assignment"), exports);
|
|
18
18
|
__exportStar(require("./fee_structure"), exports);
|
|
19
|
+
__exportStar(require("./fee_structure_item"), exports);
|
package/package.json
CHANGED