/
home
/
infinitibizsol
/
.trash
/
models.2
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/models.2/Opportunity.js
module.exports = (sequelize, DataTypes) => { const Opportunity = sequelize.define( "tblOpportunity", { opportunity_id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true, }, week_id: { type: DataTypes.INTEGER, allowNull: false, validate: { notNull: { args: true, msg: "The week_id cannot be null", }, }, }, auctioneer_id: { type: DataTypes.INTEGER, allowNull: false, validate: { notNull: { args: true, msg: "The auctioneer_id cannot be null", }, }, }, user_id: { type: DataTypes.INTEGER, allowNull: false, validate: { notNull: { args: true, msg: "The user_id cannot be null", }, }, }, date: { type: DataTypes.STRING, allowNull: true, }, }, { timestamps: true, } ); return Opportunity; };
Copyright ©2k19 -
Hexid
|
Tex7ure