Archived
2

POST /condition/new

This commit is contained in:
VLE2FE
2020-05-08 14:41:31 +02:00
parent 9580af9dd3
commit 852c035dfc
12 changed files with 492 additions and 12 deletions

12
src/models/condition.ts Normal file
View File

@ -0,0 +1,12 @@
import mongoose from 'mongoose';
import SampleModel from './sample';
import TreatmentTemplateModel from './treatment_template';
const ConditionSchema = new mongoose.Schema({
sample_id: {type: mongoose.Schema.Types.ObjectId, ref: SampleModel},
number: String,
parameters: mongoose.Schema.Types.Mixed,
treatment_template: {type: mongoose.Schema.Types.ObjectId, ref: TreatmentTemplateModel}
});
export default mongoose.model('condition', ConditionSchema);