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