Skip to content

Commit e87f000

Browse files
authored
Merge pull request #27 from tcet-opensource/8-create-student-college-model
Creating schemas and functions for student college details
2 parents 63afb3a + 2ac820c commit e87f000

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

models/std_college.js

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
const { connector } = require("./databaseUtil");
2+
3+
const StudentCollegeSchema = {
4+
userId: {
5+
type: String,
6+
required: true,
7+
unique: true,
8+
},
9+
AdmissionYear: {
10+
type: String,
11+
required: true,
12+
},
13+
StudentCode: {
14+
type: String,
15+
},
16+
Rollno: {
17+
type: String,
18+
},
19+
AdmissionStatus: {
20+
type: String,
21+
required: true,
22+
},
23+
AdmissionPattern: {
24+
type: String,
25+
},
26+
Admissioncategory: {
27+
type: String,
28+
required: true,
29+
},
30+
SeatDesc: {
31+
type: String,
32+
},
33+
QuotaType: {
34+
type: String,
35+
required: true,
36+
},
37+
QuotaType: {
38+
type: String,
39+
required: true,
40+
},
41+
Boarder: {
42+
type: Boolean,
43+
},
44+
Seattype: {
45+
type: String,
46+
required: true,
47+
},
48+
Seatsubtype: {
49+
type: String,
50+
required: true,
51+
},
52+
EligibilityNo: {
53+
type: String,
54+
required: true,
55+
},
56+
EnrollmentNo: {
57+
type: String,
58+
required: true,
59+
unique: true,
60+
},
61+
};
62+
63+
const studentcollegeCollege = new connector.model(
64+
"StudentCollegeSchema",
65+
StudentCollegeSchema
66+
);
67+
68+
module.exports = {};

0 commit comments

Comments
 (0)