const { Model, DataTypes } = require('sequelize');

/**
 * SickType Model
 * Repräsentiert die sick_type-Tabelle
 */
class SickType extends Model {
  static initialize(sequelize) {
    SickType.init(
      {
        id: {
          type: DataTypes.BIGINT,
          primaryKey: true,
          autoIncrement: true,
          allowNull: false
        },
        version: {
          type: DataTypes.INTEGER,
          allowNull: false,
          defaultValue: 0
        },
        description: {
          type: DataTypes.TEXT,
          allowNull: false
        }
      },
      {
        sequelize,
        tableName: 'sick_type',
        timestamps: false
      }
    );

    return SickType;
  }
}

module.exports = SickType;



