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