From 8170d5bc0544fbc02155b8b57751cd1dec33dd69 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 6 Apr 2021 10:57:50 +0000 Subject: initial public commit --- models/picture.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 models/picture.js (limited to 'models/picture.js') 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); -- cgit v1.2.3