module.exports = (sequelize, DataTypes) => { const QuarterlyWindowsConfiguration = sequelize.define( "quarterly_windows_configuration_master", { id: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true, }, survey_name: { type: DataTypes.STRING(10), allowNull: false, }, year: { type: DataTypes.INTEGER, allowNull: false, }, quarter: { type: DataTypes.STRING(10), allowNull: false, }, start_date: { type: DataTypes.DATE, allowNull: false, }, end_date: { type: DataTypes.DATE, allowNull: false, }, grace_periods_days: { type: DataTypes.INTEGER, allowNull: true, }, is_active: { type: DataTypes.BOOLEAN, defaultValue: true, }, created_at: { type: DataTypes.DATE, defaultValue: DataTypes.NOW, }, created_by: { type: DataTypes.INTEGER, allowNull: false, }, updated_at: { type: DataTypes.DATE, allowNull: true, }, updated_by: { type: DataTypes.INTEGER, allowNull: true, }, assigned: { type: DataTypes.INTEGER }, responded: { type: DataTypes.INTEGER }, not_responded: { type: DataTypes.INTEGER }, }, { tableName: "quarterly_windows_configuration_master", timestamps: false, } ); return QuarterlyWindowsConfiguration; };