From 657599acccf351c7c9366cec9f648b7496c89bdb Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 1 Apr 2025 21:52:44 -0400 Subject: New commands (warn, adventure); Splitting log channels --- bot/src/db/models/guild-settings.js | 10 ++++++++- bot/src/db/models/warn.js | 42 +++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 bot/src/db/models/warn.js (limited to 'bot/src/db/models') diff --git a/bot/src/db/models/guild-settings.js b/bot/src/db/models/guild-settings.js index c6bcaa4..09cddd2 100644 --- a/bot/src/db/models/guild-settings.js +++ b/bot/src/db/models/guild-settings.js @@ -11,7 +11,15 @@ export const guildSettings = sequelize.define('guild-settings', { type: STRING, allowNull: false }, - logChannelID: { + memberLogChannelID: { + type: STRING, + allowNull: true + }, + messageLogChannelID: { + type: STRING, + allowNull: true + }, + warnLogChannelID: { type: STRING, allowNull: true }, diff --git a/bot/src/db/models/warn.js b/bot/src/db/models/warn.js new file mode 100644 index 0000000..d766238 --- /dev/null +++ b/bot/src/db/models/warn.js @@ -0,0 +1,42 @@ +import { INTEGER, STRING } from 'sequelize'; +import { sequelize } from '../../utils/sequelize.js'; + +export const warnSettings = sequelize.define('warn-settings', { + id: { + type: INTEGER, + primaryKey: true, + autoIncrement: true, + }, + guildID: { + type: STRING, + allowNull: false + }, + strikes: { + type: STRING, + allowNull: false + }, + punishment: { + type: STRING, + allowNull: false + } +}); + +export const warnLog = sequelize.define('warn-log', { + id: { + type: INTEGER, + primaryKey: true, + autoIncrement: true, + }, + guildID: { + type: STRING, + allowNull: false + }, + userID: { + type: STRING, + allowNull: false + }, + reason: { + type: STRING, + allowNull: false + } +}); -- cgit v1.2.3