diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-30 17:21:29 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-30 17:21:29 -0400 |
| commit | d37cc8c56cbf8c9ffe7023c671abe0d579ea875d (patch) | |
| tree | 15dd5ba6bc8046017d78ff0186af0175850c612b /bot/src/db/models/quote.js | |
| parent | 1662608835099ee3176d07d67c6a3c69f716f938 (diff) | |
| download | AleeBot-d37cc8c56cbf8c9ffe7023c671abe0d579ea875d.tar.gz AleeBot-d37cc8c56cbf8c9ffe7023c671abe0d579ea875d.tar.bz2 AleeBot-d37cc8c56cbf8c9ffe7023c671abe0d579ea875d.zip | |
Moved models to the db folder
Diffstat (limited to 'bot/src/db/models/quote.js')
| -rw-r--r-- | bot/src/db/models/quote.js | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/bot/src/db/models/quote.js b/bot/src/db/models/quote.js new file mode 100644 index 0000000..3ff705d --- /dev/null +++ b/bot/src/db/models/quote.js @@ -0,0 +1,64 @@ +import { INTEGER, STRING, TEXT } from 'sequelize'; +import { sequelize } from '../../utils/sequelize.js'; + +export const quote = sequelize.define('quotes', { + id: { + type: INTEGER, + autoIncrement: true, + primaryKey: true + }, + author: { + type: STRING, + allowNull: false + }, + authorImage: { + type: STRING, + allowNull: false + }, + quote: { + type: TEXT, + allowNull: false + }, + year: { + type: STRING, + allowNull: false + }, + submitter: { + type: STRING, + allowNull: false + } + +}); + +export const pendingQuote = sequelize.define('pending-quotes', { + id: { + type: INTEGER, + autoIncrement: true, + primaryKey: true + }, + author: { + type: STRING, + allowNull: false + }, + authorImage: { + type: STRING, + allowNull: false + }, + quote: { + type: TEXT, + allowNull: false + }, + year: { + type: STRING, + allowNull: false + }, + submitterAuthor: { + type: STRING, + allowNull: false + }, + submitterID: { + type: STRING, + allowNull: false + } + +}); |
