/
home
/
infinitibizsol
/
.trash
/
models.2
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/models.2/AuctionLane.js
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: false, } ); return AuctionLane; };
Copyright ©2k19 -
Hexid
|
Tex7ure