Moe-Counter/db/schema.js

8 lines
226 B
JavaScript
Raw Normal View History

'use strict'
const mongoose = require('mongoose');
module.exports = new mongoose.Schema({
name: { type: String, required: true },
num: { type: Number, required: true }
}, { collection: 'tb_count', versionKey: false });