dyno-bot/Dyno-datafactory-develop/models/Module.js

12 lines
296 B
JavaScript
Raw Normal View History

2020-09-12 20:08:48 +02:00
'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const moduleSchema = new Schema({
name: { type: String, index: true, required: true },
_state: { type: Number, index: true },
}, { strict: false });
module.exports = { name: 'Module', schema: moduleSchema }