Archived
2
This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
definma-api/src/models/measurement_template.ts

13 lines
380 B
TypeScript
Raw Normal View History

2020-05-04 15:48:07 +02:00
import mongoose from 'mongoose';
const MeasurementTemplateSchema = new mongoose.Schema({
first_id: mongoose.Schema.Types.ObjectId,
2020-05-14 15:36:47 +02:00
name: String,
2020-05-14 12:31:57 +02:00
version: Number,
2020-05-04 15:48:07 +02:00
parameters: [{
name: String,
range: mongoose.Schema.Types.Mixed
}]
}, {minimize: false}); // to allow empty objects
export default mongoose.model('measurement_template', MeasurementTemplateSchema);