Skip to content

Commit

Permalink
added array for infra and accreditation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitansh159 authored Jul 2, 2023
1 parent b9f2c11 commit e21fbfd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions models/department.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ const departmentSchema = {
name: { type: Number, required: true },
acronym: { type: String, required: true, immutable: true },
yearOfStarting: { type: Date, immutable: true, required: true },
accreditations: {
accreditations: [{
type: connector.Schema.Types.ObjectId,
ref: 'Accreditation',
required: true,
},
infrastructures: {
}],
infrastructures: [{
type: connector.Schema.Types.ObjectId,
ref: 'Infrastructure',
required: true,
},
}],
};

const Department = connector.model('Department', departmentSchema);

0 comments on commit e21fbfd

Please sign in to comment.