import { DataTypes } from 'sequelize';
import sequelize from '../database.js';

const ClubTaskSuppression = sequelize.define('ClubTaskSuppression', {
  clubId: {
    type: DataTypes.INTEGER,
    allowNull: false,
    field: 'club_id'
  },
  automationKey: {
    type: DataTypes.STRING(255),
    allowNull: false,
    field: 'automation_key'
  },
  suppressionToken: {
    type: DataTypes.STRING(255),
    allowNull: false,
    field: 'suppression_token'
  },
  dismissedByUserId: {
    type: DataTypes.INTEGER,
    allowNull: true,
    field: 'dismissed_by_user_id'
  }
}, {
  tableName: 'club_task_suppressions',
  underscored: true,
  timestamps: true
});

export default ClubTaskSuppression;
