Skip to content

Commit e4cd856

Browse files
authored
Merge pull request #24 from tcet-opensource/9-create_student_medical_history_model
This issue refers to issue #9, to create student medical history schema.
2 parents cfae0de + d01cc18 commit e4cd856

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

models/std_med_history.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { connector } from './databaseUtil';
2+
3+
const studentMedicalSchema={
4+
bloodGroup:{type:String, required:true},
5+
pastMedicalHistory:{type:String, required:true},
6+
immunisationHistory:{type:String, required:true},
7+
chronicMedicalConditions:{type:String},
8+
parentsEmailId:{type:String, required:true},
9+
parentsContact:{type:Number, required:true},
10+
relativeContacts:{type:Number, required:true},
11+
}
12+
const medicalHistory=new connector.model('stu-med',studentMedicalSchema);
13+
module.exports={};

0 commit comments

Comments
 (0)