module.exports = (sequelize, DataTypes) => {
  const ImportantDate = sequelize.define(
    "ImportantDate",
    {
      id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true,
      },
      ap_datefrom: {
        type: DataTypes.DATEONLY,
        allowNull: false,
      },
      ap_dateto: {
        type: DataTypes.DATEONLY,
        allowNull: false,
      },
      admitcard: {
        type: DataTypes.DATEONLY,
        allowNull: false,
      },
      examdate: {
        type: DataTypes.DATEONLY,
        allowNull: false,
      },
      examstarttime: {
        type: DataTypes.TIME,
        allowNull: false,
      },
      examendtime: {
        type: DataTypes.TIME,
        allowNull: false,
      },
      result: {
        type: DataTypes.DATEONLY,
        allowNull: false,
      },
    },
    {
      tableName: "tbl_importantdate",
      timestamps: false, // Disable automatic timestamp fields
      paranoid: false, // Disable soft deletes
      underscored: false, // Disable automatic column name transformation
    }
  );

  return ImportantDate;
};
