summaryrefslogtreecommitdiff
path: root/models/picture.js
diff options
context:
space:
mode:
authorroot <root@vagrantz.xyz>2021-04-06 10:57:50 +0000
committerroot <root@vagrantz.xyz>2021-04-06 10:57:50 +0000
commit8170d5bc0544fbc02155b8b57751cd1dec33dd69 (patch)
treed5cffb086fe6d5585c1e00ea5d5d2d907e6d2cd6 /models/picture.js
initial public commitHEADmaster
Diffstat (limited to 'models/picture.js')
-rw-r--r--models/picture.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/models/picture.js b/models/picture.js
new file mode 100644
index 0000000..d80810c
--- /dev/null
+++ b/models/picture.js
@@ -0,0 +1,9 @@
+const mongoose = require('mongoose');
+
+//Schema Setup
+const pictureSchema = new mongoose.Schema({
+ type: String,
+ data: Buffer
+});
+
+module.exports = new mongoose.model('Picture', pictureSchema);