Sindbad~EG File Manager
module.exports = (sequelize, DataTypes) => {
const Auction = sequelize.define(
"tblAuction",
{
auction_id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true,
},
name: {
type: DataTypes.STRING,
allowNull: false,
validate: {
notEmpty: {
args: true,
msg: "Please provide a auction name",
},
notNull: {
args: true,
msg: "The auction name cannot be null",
},
},
},
location: {
type: DataTypes.STRING,
allowNull: false,
validate: {
notEmpty: {
args: true,
msg: "Please provide a location",
},
notNull: {
args: true,
msg: "The location cannot be null",
},
},
},
},
{
timestamps: false,
}
);
return Auction;
};
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists