diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-01-11 11:55:18 -0500 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-01-11 11:55:18 -0500 |
| commit | f5de90ba89146008af78c16e798e216efccf0c50 (patch) | |
| tree | 75f2bb7cee8bacce3f92c2b1bc468c7831b3429e /models | |
| parent | 83dcca0a0279ce6415a3e9d153c13d91284369b0 (diff) | |
| download | AleeBot-f5de90ba89146008af78c16e798e216efccf0c50.tar.gz AleeBot-f5de90ba89146008af78c16e798e216efccf0c50.tar.bz2 AleeBot-f5de90ba89146008af78c16e798e216efccf0c50.zip | |
Ability to add quotes, web interface, pending quotes
Diffstat (limited to 'models')
| -rw-r--r-- | models/quote.js | 27 |
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 }; |
