diff options
Diffstat (limited to 'src/lib/models/instance/ActivePunishment.ts')
-rw-r--r-- | src/lib/models/instance/ActivePunishment.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/models/instance/ActivePunishment.ts b/src/lib/models/instance/ActivePunishment.ts index 1d6104f..38012ca 100644 --- a/src/lib/models/instance/ActivePunishment.ts +++ b/src/lib/models/instance/ActivePunishment.ts @@ -31,6 +31,9 @@ export interface ActivePunishmentModelCreationAttributes { modlog: string; } +/** + * Keeps track of active punishments so they can be removed later. + */ export class ActivePunishment extends BaseModel<ActivePunishmentModel, ActivePunishmentModelCreationAttributes> implements ActivePunishmentModel @@ -77,7 +80,7 @@ export class ActivePunishment public static initModel(sequelize: Sequelize): void { ActivePunishment.init( { - id: { type: DataTypes.STRING, primaryKey: true, allowNull: false, defaultValue: nanoid }, + id: { type: DataTypes.STRING, primaryKey: true, defaultValue: nanoid }, type: { type: DataTypes.STRING, allowNull: false }, user: { type: DataTypes.STRING, allowNull: false }, guild: { type: DataTypes.STRING, allowNull: false, references: { model: 'Guilds', key: 'id' } }, |