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: {