Sha256: bc1148a64231dc058b52203c1d1379d8136820a8f75f2f3c19036b5f043d1478
Contents?: true
Size: 582 Bytes
Versions: 19
Compression:
Stored size: 582 Bytes
Contents
const mongoose = require('mongoose/browser'); const Concept = require('./Concept.js'); const [String] = [mongoose.Schema.Types.String]; const ValueSetSchema = new mongoose.Schema( { oid: String, display_name: String, version: String, concepts: [Concept.ConceptSchema], }, // Options { timestamps: { createdAt: 'created_at', updatedAt: 'updated_at' }, } ); module.exports.ValueSetSchema = ValueSetSchema; class ValueSet extends mongoose.Document { constructor(object) { super(object, ValueSetSchema); } } module.exports.ValueSet = ValueSet;
Version data entries
19 entries across 19 versions & 1 rubygems