Skip to content

Commit

Permalink
Tweak training milestone model.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdconn00 committed Feb 25, 2024
1 parent 16d1f27 commit e80a3f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions models/TrainingMilestone.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import m from 'mongoose';
const trainingMilestoneSchema = new m.Schema({
code: String,
name: String,
rating: Number,
certCode: String
rating: Number, // Legacy field, replaced by "availableAtRatings".
certCode: String, // Legacy field, replaced by "hiddenWhenControllerHasTierOne".
availableAtRatings: Array,
hiddenWhenControllerHasTierOne: Boolean
});

export default m.model('TrainingMilestone', trainingMilestoneSchema, 'trainingMilestones');

0 comments on commit e80a3f2

Please sign in to comment.