Skip to content

Commit

Permalink
missing some file
Browse files Browse the repository at this point in the history
  • Loading branch information
RatonBiswas committed Nov 13, 2020
1 parent c832861 commit df8deb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions model/courseAllocationModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const courseAllocationModel = new mongoose.Schema({
type: mongoose.Schema.ObjectId,
ref: 'Term',
},
batch:{
type: mongoose.Schema.ObjectId,
ref: 'Batch',
},
type: Object
},
course : {
Expand Down
3 changes: 1 addition & 2 deletions model/sectionModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import mongoose from 'mongoose';
const sectionSchema = new mongoose.Schema({
sectionName: {
type : String,
maxlength: [45, 'A course allocation have a less than or equal 45 students in one section'],
minength: [35, 'A course allocation have a more than or equal 35 students in one section']
required: [true,'A course allocation has a section name!']
}
})

Expand Down

0 comments on commit df8deb3

Please sign in to comment.