I'm making a database for beavers, however some properties should be unchangeable such as the birth date or the location where it was first seen.
How do I implement this? Is there a mongoose schema property for this? Or do I do it with JS?
Example of the schema:
let beaverSchema = new Schema({
id: {type: String, required: true, unique: true},
birthDate: {type: Date},
locationSpotted: {type: String},
firstSeen: {type: Date},
status: {type: String, default: "Alive"},
sex: {type: String}
})