aboutsummaryrefslogtreecommitdiff
path: root/bot/src/models/quote.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-03 11:42:27 -0500
committerAndrew Lee <andrew@alee14.me>2025-03-03 11:42:27 -0500
commitfd7f8eba960981482fabf350995bf753feebb176 (patch)
tree2bd0c85b09a04ecd8e1f20fc409eb4b8a22289a7 /bot/src/models/quote.js
parentcf1382d88c5e3298923c8cb243b7bc5751e68b53 (diff)
downloadAleeBot-fd7f8eba960981482fabf350995bf753feebb176.tar.gz
AleeBot-fd7f8eba960981482fabf350995bf753feebb176.tar.bz2
AleeBot-fd7f8eba960981482fabf350995bf753feebb176.zip
More commands ported; Almost all 2.x features have been added
Diffstat (limited to 'bot/src/models/quote.js')
-rw-r--r--bot/src/models/quote.js64
1 files changed, 64 insertions, 0 deletions
diff --git a/bot/src/models/quote.js b/bot/src/models/quote.js
new file mode 100644
index 0000000..25c8f01
--- /dev/null
+++ b/bot/src/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
+ }
+
+});