From aa3eac70bab80ed6ce3a9bd9418e1acb76a6a387 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sun, 3 Mar 2024 00:41:04 +0100 Subject: [PATCH] boolean property to note role assignment --- models/roles.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/models/roles.js b/models/roles.js index 315d1bb..25145eb 100644 --- a/models/roles.js +++ b/models/roles.js @@ -3,6 +3,7 @@ import { DataTypes, Sequelize } from 'sequelize'; /** * @typedef {Object} Role * @property {string} id A Discord role ID. + * @property {boolean} assign Whether or not the role should be assigned to new members. * @property {string} guild A Discord guild ID as a foreign key reference. * @property {(model: Object) => void} hasMany Defines an One-To-Many relationship. * @property {(conditions: Object) => Promise} findOne Finds one instance in the database matching the provided condition(-s). @@ -20,6 +21,10 @@ export default function (sequelize) { type: DataTypes.STRING, primaryKey: true }, + assign: { + type: DataTypes.BOOLEAN, + defaultValue: false + }, guild: { type: DataTypes.STRING, references: {