Sha256: 51d743c6d15dfde85e8ad1c8f5851b04f2a790f86dd7543a3b26626b8037dd6a
Contents?: true
Size: 802 Bytes
Versions: 9
Compression:
Stored size: 802 Bytes
Contents
const mongoose = require('mongoose'); const Concept = require('./Concept.js'); const [String, Mixed, ObjectId] = [ mongoose.Schema.Types.String, mongoose.Schema.Types.Mixed, mongoose.Schema.Types.ObjectId, ]; const ValueSetSchema = mongoose.Schema( { oid: String, display_name: String, version: String, categories: Mixed, concepts: [Concept.ConceptSchema], user: { type: ObjectId, ref: 'User', index: true }, // Bonnie-specific bundle: { type: ObjectId, ref: 'Bundle' }, // Cypress-specific measures: [{ type: ObjectId, ref: 'Measure' }], }, // Options { timestamps: { createdAt: 'created_at', updatedAt: 'updated_at' }, } ); module.exports.ValueSetSchema = ValueSetSchema; module.exports.ValueSet = mongoose.model('value_set', ValueSetSchema);
Version data entries
9 entries across 9 versions & 1 rubygems