Commit 4fb323fc by wangyong

feat: (business_opportunity_bath) 需求新增“我的商机” Schema models

parent fea47653
const system = require("../../../system");
const settings = require("../../../../config/settings");
const appconfig = system.getSysConfig();
/**
* 商机批次表
*/
module.exports = (db, DataTypes) => {
return db.define("bizopt", {
business_bath: { // 需求批次
allowNull: false,
type: DataTypes.STRING
},
business_type: { // 商机数量
allowNull: false,
type: DataTypes.INTEGER
},
business_info: { // 批次详情
allowNull: false,
type: DataTypes.JSON
},
business_salesman: { // 业务员
allowNull: false,
type: DataTypes.STRING
},
payment_link: {
allowNull: false,
type: DataTypes.STRING
}
}, {
paranoid: false, //假的删除
underscored: true,
version: true,
freezeTableName: true,
//freezeTableName: true,
// define the table's name
tableName: 'bussiness_opportunity_bath',
validate: {
},
indexes: []
});
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment