aboutsummaryrefslogtreecommitdiff
path: root/schema/quote-schema.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2021-07-29 16:00:22 -0400
committerAndrew Lee <alee14498@protonmail.com>2021-07-29 16:00:22 -0400
commit06dd6383d7a239817c2a9724465896ef7da70bc2 (patch)
tree8c5f63e6adc1a5cd47737d88e44fd7c76f325ea2 /schema/quote-schema.js
parentffc85798c04897d1ddaed61a9be40e5bb0a8792f (diff)
downloadAleeBot-06dd6383d7a239817c2a9724465896ef7da70bc2.tar.gz
AleeBot-06dd6383d7a239817c2a9724465896ef7da70bc2.tar.bz2
AleeBot-06dd6383d7a239817c2a9724465896ef7da70bc2.zip
Big changes
Diffstat (limited to 'schema/quote-schema.js')
-rw-r--r--schema/quote-schema.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/schema/quote-schema.js b/schema/quote-schema.js
new file mode 100644
index 0000000..d1c7db8
--- /dev/null
+++ b/schema/quote-schema.js
@@ -0,0 +1,17 @@
+const mongoose = require('mongoose');
+
+const reqString = {
+ type: String,
+ required: true
+}
+
+const quoteSchema = mongoose.Schema({
+ quoteID: reqString,
+ author: reqString,
+ authorImage: reqString,
+ quote: reqString,
+ year: reqString
+
+})
+
+module.exports = mongoose.model('quote', quoteSchema) \ No newline at end of file