Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
4fb323fc
Commit
4fb323fc
authored
Sep 14, 2020
by
wangyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: (business_opportunity_bath) 需求新增“我的商机” Schema models
parent
fea47653
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
icp-deliver/app/base/db/models/delivery/business_opportunity_bath.js
+43
-0
No files found.
icp-deliver/app/base/db/models/delivery/business_opportunity_bath.js
0 → 100644
View file @
4fb323fc
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment