diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-04-01 21:52:44 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-04-01 21:52:44 -0400 |
| commit | 657599acccf351c7c9366cec9f648b7496c89bdb (patch) | |
| tree | d35ed13d5234312d8eef5f9584c46ebb16d4b155 /bot/src/db/models/warn.js | |
| parent | 43e2344173178a5945ddca24a9ef7c091269b040 (diff) | |
| download | AleeBot-657599acccf351c7c9366cec9f648b7496c89bdb.tar.gz AleeBot-657599acccf351c7c9366cec9f648b7496c89bdb.tar.bz2 AleeBot-657599acccf351c7c9366cec9f648b7496c89bdb.zip | |
New commands (warn, adventure); Splitting log channels
Diffstat (limited to 'bot/src/db/models/warn.js')
| -rw-r--r-- | bot/src/db/models/warn.js | 42 |
1 files changed, 42 insertions, 0 deletions
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 + } +}); |
