diff options
| author | Jad <[email protected]> | 2020-08-12 10:03:35 +0000 |
|---|---|---|
| committer | Jad <[email protected]> | 2020-08-12 10:03:35 +0000 |
| commit | 3bd1ae58e4e9019cc0bab7c9221da73f02d914c7 (patch) | |
| tree | d824e32c08eec7ede53aec0340d2f2dfe74949db /db/schema.js | |
| parent | feat: add message board (diff) | |
| download | counter-3bd1ae58e4e9019cc0bab7c9221da73f02d914c7.tar.xz counter-3bd1ae58e4e9019cc0bab7c9221da73f02d914c7.zip | |
feat: support mongoDB
feat: support dynamic image size
docs: add Readme.md
Diffstat (limited to 'db/schema.js')
| -rw-r--r-- | db/schema.js | 8 |
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 |