From 10434adad478d21bbb834a5803125db9f54c9d6c Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 2 Apr 2025 02:21:41 -0400 Subject: Added i18n (basic); Blacklist feature; Put error msg into a file --- bot/src/db/models/blacklist.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 bot/src/db/models/blacklist.js (limited to 'bot/src/db/models/blacklist.js') diff --git a/bot/src/db/models/blacklist.js b/bot/src/db/models/blacklist.js new file mode 100644 index 0000000..1542f91 --- /dev/null +++ b/bot/src/db/models/blacklist.js @@ -0,0 +1,30 @@ +import { INTEGER, STRING } from 'sequelize'; +import { sequelize } from '../../utils/sequelize.js'; + +export const blacklistUser = sequelize.define('blacklist-users', { + id: { + type: INTEGER, + primaryKey: true, + autoIncrement: true, + }, + userID: { + type: STRING, + allowNull: false + } +}, { + updatedAt: false, +}); + +export const blacklistGuild = sequelize.define('blacklist-guilds', { + id: { + type: INTEGER, + primaryKey: true, + autoIncrement: true, + }, + guildID: { + type: STRING, + allowNull: false + } +}, { + updatedAt: false, +}); -- cgit v1.2.3