aboutsummaryrefslogtreecommitdiff
path: root/models/quote.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-01-11 11:55:18 -0500
committerAndrew Lee <andrew@alee14.me>2025-01-11 11:55:18 -0500
commitf5de90ba89146008af78c16e798e216efccf0c50 (patch)
tree75f2bb7cee8bacce3f92c2b1bc468c7831b3429e /models/quote.js
parent83dcca0a0279ce6415a3e9d153c13d91284369b0 (diff)
downloadAleeBot-f5de90ba89146008af78c16e798e216efccf0c50.tar.gz
AleeBot-f5de90ba89146008af78c16e798e216efccf0c50.tar.bz2
AleeBot-f5de90ba89146008af78c16e798e216efccf0c50.zip
Ability to add quotes, web interface, pending quotes
Diffstat (limited to 'models/quote.js')
-rw-r--r--models/quote.js27
1 files changed, 26 insertions, 1 deletions
diff --git a/models/quote.js b/models/quote.js
index f31b472..eab4f57 100644
--- a/models/quote.js
+++ b/models/quote.js
@@ -26,4 +26,29 @@ const quote = sequelize.define('quotes', {
})
-module.exports = quote
+const pendingQuote = sequelize.define('pending-quotes', {
+ id: {
+ type: Sequelize.INTEGER,
+ autoIncrement: true,
+ primaryKey: true
+ },
+ author: {
+ type: Sequelize.STRING,
+ allowNull: false
+ },
+ authorImage: {
+ type: Sequelize.STRING,
+ allowNull: false
+ },
+ quote: {
+ type: Sequelize.TEXT,
+ allowNull: false
+ },
+ year: {
+ type: Sequelize.STRING,
+ allowNull: false
+ }
+
+})
+
+module.exports = { quote, pendingQuote };