44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
// app/models/variationReasonMaster.model.js
|
|
module.exports = (sequelize, DataTypes) => {
|
|
const VariationReasonMaster = sequelize.define("variation_reason_master", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
autoIncrement: true,
|
|
primaryKey: true,
|
|
},
|
|
reason: {
|
|
type: DataTypes.STRING(255),
|
|
allowNull: false,
|
|
},
|
|
high_or_low: {
|
|
type: DataTypes.STRING(20),
|
|
allowNull: true,
|
|
},
|
|
is_active: {
|
|
type: DataTypes.BOOLEAN,
|
|
defaultValue: true,
|
|
},
|
|
created_at: {
|
|
type: DataTypes.DATE,
|
|
defaultValue: DataTypes.NOW,
|
|
},
|
|
created_by: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
},
|
|
updated_at: {
|
|
type: DataTypes.DATE,
|
|
allowNull: true,
|
|
},
|
|
updated_by: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
},
|
|
}, {
|
|
tableName: "variation_reason_master",
|
|
timestamps: false,
|
|
});
|
|
|
|
return VariationReasonMaster;
|
|
};
|
|
|