aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-01-11 18:02:05 -0500
committerAndrew Lee <andrew@alee14.me>2025-01-11 18:02:05 -0500
commit7e65ae0e135098acad76b8081f34478b4efc077f (patch)
treeb7efc060fca4257a875a5a3e525e2733b6579040 /models
parentf5de90ba89146008af78c16e798e216efccf0c50 (diff)
downloadAleeBot-7e65ae0e135098acad76b8081f34478b4efc077f.tar.gz
AleeBot-7e65ae0e135098acad76b8081f34478b4efc077f.tar.bz2
AleeBot-7e65ae0e135098acad76b8081f34478b4efc077f.zip
Cleaned up some code, author image now support attachments
Diffstat (limited to 'models')
-rw-r--r--models/quote.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/models/quote.js b/models/quote.js
index eab4f57..b68dfbc 100644
--- a/models/quote.js
+++ b/models/quote.js
@@ -22,6 +22,14 @@ const quote = sequelize.define('quotes', {
year: {
type: Sequelize.STRING,
allowNull: false
+ },
+ url: {
+ type: Sequelize.STRING,
+ allowNull: true
+ },
+ submitter: {
+ type: Sequelize.STRING,
+ allowNull: false
}
})
@@ -47,6 +55,18 @@ const pendingQuote = sequelize.define('pending-quotes', {
year: {
type: Sequelize.STRING,
allowNull: false
+ },
+ url: {
+ type: Sequelize.STRING,
+ allowNull: true
+ },
+ submitterAuthor: {
+ type: Sequelize.STRING,
+ allowNull: false
+ },
+ submitterID: {
+ type: Sequelize.STRING,
+ allowNull: false
}
})