aboutsummaryrefslogtreecommitdiff
path: root/bot/src/models
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-30 17:21:29 -0400
committerAndrew Lee <andrew@alee14.me>2025-03-30 17:21:29 -0400
commitd37cc8c56cbf8c9ffe7023c671abe0d579ea875d (patch)
tree15dd5ba6bc8046017d78ff0186af0175850c612b /bot/src/models
parent1662608835099ee3176d07d67c6a3c69f716f938 (diff)
downloadAleeBot-d37cc8c56cbf8c9ffe7023c671abe0d579ea875d.tar.gz
AleeBot-d37cc8c56cbf8c9ffe7023c671abe0d579ea875d.tar.bz2
AleeBot-d37cc8c56cbf8c9ffe7023c671abe0d579ea875d.zip
Moved models to the db folder
Diffstat (limited to 'bot/src/models')
-rw-r--r--bot/src/models/command-usages.js26
-rw-r--r--bot/src/models/guild-settings.js35
-rw-r--r--bot/src/models/quote.js64
3 files changed, 0 insertions, 125 deletions
diff --git a/bot/src/models/command-usages.js b/bot/src/models/command-usages.js
deleted file mode 100644
index a9dafa4..0000000
--- a/bot/src/models/command-usages.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import { INTEGER, STRING } from 'sequelize';
-import { sequelize } from '../utils/sequelize.js';
-
-export const commandUsages = sequelize.define('command-usages', {
- id: {
- type: INTEGER,
- autoIncrement: true,
- primaryKey: true
- },
- command: {
- type: STRING,
- allowNull: false
- },
- userID: {
- type: STRING,
- allowNull: false
- },
- guildID: {
- type: STRING,
- allowNull: true
- }
-
-}, {
- updatedAt: false,
-});
-
diff --git a/bot/src/models/guild-settings.js b/bot/src/models/guild-settings.js
deleted file mode 100644
index bb4d30b..0000000
--- a/bot/src/models/guild-settings.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import { INTEGER, STRING, BOOLEAN } from 'sequelize';
-import { sequelize } from '../utils/sequelize.js';
-
-export const guildSettings = sequelize.define('guild-settings', {
- id: {
- type: INTEGER,
- primaryKey: true,
- autoIncrement: true,
- },
- guildID: {
- type: STRING,
- allowNull: false
- },
- logChannelID: {
- type: STRING,
- allowNull: true
- },
- suggestionsChannelID: {
- type: STRING,
- allowNull: true
- },
- qotdChannelID: {
- type: STRING,
- allowNull: true
- },
- qotdToggle: {
- type: BOOLEAN,
- allowNull: true
- },
- ollamaEnabled: {
- type: BOOLEAN,
- allowNull: true
- },
-
-});
diff --git a/bot/src/models/quote.js b/bot/src/models/quote.js
deleted file mode 100644
index 9d0ad00..0000000
--- a/bot/src/models/quote.js
+++ /dev/null
@@ -1,64 +0,0 @@
-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
- }
-
-});