Sha256: afa77e78b065d879b77ebd80a6a9ad2633c10bf22d10f5884b19e14d483b7067
Contents?: true
Size: 506 Bytes
Versions: 15
Compression:
Stored size: 506 Bytes
Contents
const mongoose = require('mongoose'); const [mBuffer, ObjectId] = [ mongoose.Schema.Types.Buffer, mongoose.Schema.Types.ObjectId, ]; const MeasurePackageSchema = mongoose.Schema( { file: mBuffer, measure: { type: ObjectId, ref: 'Measure' }, }, // Options { timestamps: { createdAt: 'created_at', updatedAt: 'updated_at' }, } ); module.exports.MeasurePackageSchema = MeasurePackageSchema; module.exports.MeasurePackage = mongoose.model('measure_package', MeasurePackageSchema);
Version data entries
15 entries across 15 versions & 1 rubygems