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

Version Path
cqm-models-1.0.3 app/assets/javascripts/MeasurePackage.js
cqm-models-1.0.2 app/assets/javascripts/MeasurePackage.js
cqm-models-1.0.1 app/assets/javascripts/MeasurePackage.js
cqm-models-1.0.0 app/assets/javascripts/MeasurePackage.js
cqm-models-0.8.4 app/assets/javascripts/MeasurePackage.js
cqm-models-0.8.3 app/assets/javascripts/MeasurePackage.js
cqm-models-0.8.2 app/assets/javascripts/MeasurePackage.js
cqm-models-0.8.1 app/assets/javascripts/MeasurePackage.js
cqm-models-0.8.0 app/assets/javascripts/MeasurePackage.js
cqm-models-0.7.7 app/assets/javascripts/MeasurePackage.js
cqm-models-0.7.6 app/assets/javascripts/MeasurePackage.js
cqm-models-0.7.5 app/assets/javascripts/MeasurePackage.js
cqm-models-0.7.4 app/assets/javascripts/MeasurePackage.js
cqm-models-0.7.3 app/assets/javascripts/MeasurePackage.js
cqm-models-0.7.2 app/assets/javascripts/MeasurePackage.js