Sindbad~EG File Manager
module.exports = (sequelize, DataTypes) => {
const AuctioneerFee = sequelize.define(
"tblAuctioneerFee",
{
auctioneer_fee_id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true,
},
auctioneer_id: {
type: DataTypes.INTEGER,
allowNull: false,
validate: {
notNull: {
args: true,
msg: "The auctioneer_id cannot be null",
},
},
},
name: {
type: DataTypes.STRING,
allowNull: false,
validate: {
notEmpty: {
args: true,
msg: "Please provide a fee name",
},
notNull: {
args: true,
msg: "The fee name cannot be null",
},
},
},
default_amount: {
type: DataTypes.FLOAT,
defaultValue: 300,
},
},
{
timestamps: true,
}
);
return AuctioneerFee;
};
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists