diff options
Diffstat (limited to 'schema')
| -rw-r--r-- | schema/logging-schema.js | 13 | ||||
| -rw-r--r-- | schema/quote-schema.js | 17 |
2 files changed, 30 insertions, 0 deletions
diff --git a/schema/logging-schema.js b/schema/logging-schema.js new file mode 100644 index 0000000..339c7f7 --- /dev/null +++ b/schema/logging-schema.js @@ -0,0 +1,13 @@ +const mongoose = require('mongoose') + +const reqString = { + type: String, + required: true +} + +const loggingSchema = mongoose.Schema({ + _id: reqString, + logChannel: reqString +}) + +module.exports = mongoose.model('logging', loggingSchema)
\ No newline at end of file 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 |
