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