12 lines
299 B
JavaScript
12 lines
299 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const mongoose = require('mongoose');
|
||
|
const Schema = mongoose.Schema;
|
||
|
|
||
|
const commandSchema = new Schema({
|
||
|
name: { type: String, index: true, required: true },
|
||
|
_state: { type: Number, index: true },
|
||
|
}, { strict: false });
|
||
|
|
||
|
module.exports = { name: 'Command', schema: commandSchema }
|