From d37cc8c56cbf8c9ffe7023c671abe0d579ea875d Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 30 Mar 2025 17:21:29 -0400 Subject: Moved models to the db folder --- bot/src/db/models/guild-settings.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 bot/src/db/models/guild-settings.js (limited to 'bot/src/db/models/guild-settings.js') diff --git a/bot/src/db/models/guild-settings.js b/bot/src/db/models/guild-settings.js new file mode 100644 index 0000000..c6bcaa4 --- /dev/null +++ b/bot/src/db/models/guild-settings.js @@ -0,0 +1,35 @@ +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 + }, + +}); -- cgit v1.2.3