Archived
2

adjusted sample

This commit is contained in:
VLE2FE
2020-05-13 12:06:28 +02:00
parent f77d39af34
commit 478660573d
7 changed files with 103 additions and 34 deletions

View File

@ -9,10 +9,10 @@ const SampleSchema = new mongoose.Schema({
type: String,
color: String,
batch: String,
validated: Boolean,
material_id: {type: mongoose.Schema.Types.ObjectId, ref: MaterialModel},
note_id: {type: mongoose.Schema.Types.ObjectId, ref: NoteModel},
user_id: {type: mongoose.Schema.Types.ObjectId, ref: UserModel}
user_id: {type: mongoose.Schema.Types.ObjectId, ref: UserModel},
status: Number
});
export default mongoose.model('sample', SampleSchema);