aboutsummaryrefslogtreecommitdiff
path: root/db/schema.js
diff options
context:
space:
mode:
Diffstat (limited to 'db/schema.js')
-rw-r--r--db/schema.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/schema.js b/db/schema.js
new file mode 100644
index 0000000..f558723
--- /dev/null
+++ b/db/schema.js
@@ -0,0 +1,8 @@
+'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 }); \ No newline at end of file