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
2bf175d3
Commit
2bf175d3
authored
Jan 08, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
93d25f12
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
113 additions
and
113 deletions
+113
-113
xggsve-order/app/base/db/models/order/obusinessmen.js
+39
-39
xggsve-order/app/base/db/models/order/oorder.js
+18
-18
xggsve-order/app/base/db/models/order/oorderdeliver.js
+15
-15
xggsve-order/app/base/db/models/order/oorderinforeg.js
+20
-20
xggsve-order/app/base/db/models/order/oorderprocess.js
+6
-6
xggsve-order/app/base/db/models/order/osource.js
+3
-3
xggsve-order/app/base/db/models/product/oprocess.js
+3
-3
xggsve-order/app/base/db/models/product/oproduct.js
+4
-4
xggsve-order/app/base/db/models/product/oproductprocess.js
+5
-5
No files found.
xggsve-order/app/base/db/models/order/obusinessmen.js
View file @
2bf175d3
...
@@ -4,54 +4,54 @@
...
@@ -4,54 +4,54 @@
*/
*/
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'obusinessmen'
,
{
return
db
.
define
(
'obusinessmen'
,
{
order
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'order_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'订单id'
},
order
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'order_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'订单id'
},
merchant
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'merchant_id'
,
allowNull
:
true
,
comment
:
'商户id 为了司机宝'
},
merchant
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'merchant_id'
,
allowNull
:
true
,
comment
:
'商户id 为了司机宝'
},
channel
OrderN
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'channel_order_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'渠道订单号 为了司机宝'
},
channel
_order_n
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'channel_order_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'渠道订单号 为了司机宝'
},
status
:
{
type
:
DataTypes
.
STRING
,
field
:
'status'
,
allowNull
:
true
,
defaultValue
:
'2000'
,
comment
:
'业务状态: 2000办理中, 2010待签约, 2020已完成'
},
status
:
{
type
:
DataTypes
.
STRING
,
field
:
'status'
,
allowNull
:
true
,
defaultValue
:
'2000'
,
comment
:
'业务状态: 2000办理中, 2010待签约, 2020已完成'
},
legal
N
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'legal_name'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'法人姓名'
},
legal
_n
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'legal_name'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'法人姓名'
},
legal
M
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'legal_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人电话'
},
legal
_m
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'legal_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人电话'
},
legal
IdCard
:
{
type
:
DataTypes
.
STRING
,
field
:
'legalId_
card'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人身份证号'
},
legal
_idcard
:
{
type
:
DataTypes
.
STRING
,
field
:
'legal_id
card'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人身份证号'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'个体工商户名称'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'个体工商户名称'
},
credit
C
ode
:
{
type
:
DataTypes
.
STRING
,
field
:
'credit_code'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'统一社会信用代码'
},
credit
_c
ode
:
{
type
:
DataTypes
.
STRING
,
field
:
'credit_code'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'统一社会信用代码'
},
business
P
lace
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_place'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营场所'
},
business
_p
lace
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_place'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营场所'
},
business
S
cope
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_scope'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围'
},
business
_s
cope
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_scope'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围'
},
reg
D
ate
:
{
type
:
DataTypes
.
DATE
,
field
:
'reg_date'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'注册日期'
},
reg
_d
ate
:
{
type
:
DataTypes
.
DATE
,
field
:
'reg_date'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'注册日期'
},
business
I
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'执照照片'
},
business
_i
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'执照照片'
},
business
GovF
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_gov_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'工商官方文件'
},
business
_gov_f
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_gov_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'工商官方文件'
},
gongzhang
:
{
type
:
DataTypes
.
STRING
,
field
:
'gongzhang'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'公章'
},
gongzhang
:
{
type
:
DataTypes
.
STRING
,
field
:
'gongzhang'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'公章'
},
caiwuzhang
:
{
type
:
DataTypes
.
STRING
,
field
:
'caiwuzhang'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'财务章'
},
caiwuzhang
:
{
type
:
DataTypes
.
STRING
,
field
:
'caiwuzhang'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'财务章'
},
fapiaozhang
:
{
type
:
DataTypes
.
STRING
,
field
:
'fapiaozhang'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'发票章'
},
fapiaozhang
:
{
type
:
DataTypes
.
STRING
,
field
:
'fapiaozhang'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'发票章'
},
hetongzhang
:
{
type
:
DataTypes
.
STRING
,
field
:
'hetongzhang'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'合同章'
},
hetongzhang
:
{
type
:
DataTypes
.
STRING
,
field
:
'hetongzhang'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'合同章'
},
farenzhang
:
{
type
:
DataTypes
.
STRING
,
field
:
'farenzhang'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人章'
},
farenzhang
:
{
type
:
DataTypes
.
STRING
,
field
:
'farenzhang'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人章'
},
zhang
GovF
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'zhang_gov_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'刻章官方文件'
},
zhang
_gov_f
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'zhang_gov_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'刻章官方文件'
},
is
B
ank
:
{
type
:
DataTypes
.
BOOLEAN
,
field
:
'is_bank'
,
allowNull
:
true
,
defaultValue
:
false
,
comment
:
'是否开户'
},
is
_b
ank
:
{
type
:
DataTypes
.
BOOLEAN
,
field
:
'is_bank'
,
allowNull
:
true
,
defaultValue
:
false
,
comment
:
'是否开户'
},
bank
N
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'bank_name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'账户名称'
},
bank
_n
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'bank_name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'账户名称'
},
bank
N
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'bank_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'账户号'
},
bank
_n
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'bank_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'账户号'
},
bank
:
{
type
:
DataTypes
.
STRING
,
field
:
'bank'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'开户行'
},
bank
:
{
type
:
DataTypes
.
STRING
,
field
:
'bank'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'开户行'
},
bank
I
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'bank_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'账户信息'
},
bank
_i
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'bank_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'账户信息'
},
bank
GovF
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'bank_gov_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'银行开户官方文件'
},
bank
_gov_f
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'bank_gov_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'银行开户官方文件'
},
ca
I
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'ca_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'CA照片'
},
ca
_i
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'ca_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'CA照片'
},
tax
RegD
ay
:
{
type
:
DataTypes
.
DATE
,
field
:
'tax_reg_day'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'税务登记日'
},
tax
_reg_d
ay
:
{
type
:
DataTypes
.
DATE
,
field
:
'tax_reg_day'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'税务登记日'
},
tax
O
rg
:
{
type
:
DataTypes
.
STRING
,
field
:
'tax_org'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'税务机构名称'
},
tax
_o
rg
:
{
type
:
DataTypes
.
STRING
,
field
:
'tax_org'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'税务机构名称'
},
tax
GovF
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'tax_gov_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'税务报道官方文件'
},
tax
_gov_f
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'tax_gov_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'税务报道官方文件'
},
notes
:
{
type
:
DataTypes
.
STRING
,
field
:
'notes'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'备注'
},
notes
:
{
type
:
DataTypes
.
STRING
,
field
:
'notes'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'备注'
},
common
TaxL
adder
:
{
type
:
DataTypes
.
STRING
,
field
:
'common_tax_ladder'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'普票个税阶梯'
},
common
_tax_l
adder
:
{
type
:
DataTypes
.
STRING
,
field
:
'common_tax_ladder'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'普票个税阶梯'
},
common
OtherL
adder
:
{
type
:
DataTypes
.
STRING
,
field
:
'common_other_ladder'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'普票增值税、附加税阶梯'
},
common
_other_l
adder
:
{
type
:
DataTypes
.
STRING
,
field
:
'common_other_ladder'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'普票增值税、附加税阶梯'
},
special
TaxL
adder
:
{
type
:
DataTypes
.
STRING
,
field
:
'special_tax_ladder'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'专票个税阶梯'
},
special
_tax_l
adder
:
{
type
:
DataTypes
.
STRING
,
field
:
'special_tax_ladder'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'专票个税阶梯'
},
special
OtherL
adder
:
{
type
:
DataTypes
.
STRING
,
field
:
'special_other_ladder'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'专票增值税、附加税阶梯'
},
special
_other_l
adder
:
{
type
:
DataTypes
.
STRING
,
field
:
'special_other_ladder'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'专票增值税、附加税阶梯'
},
service
BeginT
ime
:
{
type
:
DataTypes
.
DATE
,
field
:
'service_begin_time'
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
'服务开始时间'
},
service
_begin_t
ime
:
{
type
:
DataTypes
.
DATE
,
field
:
'service_begin_time'
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
'服务开始时间'
},
service
EndT
ime
:
{
type
:
DataTypes
.
DATE
,
field
:
'service_end_time'
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
'服务结束时间'
},
service
_end_t
ime
:
{
type
:
DataTypes
.
DATE
,
field
:
'service_end_time'
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
'服务结束时间'
},
cost
R
ate
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'cost_rate'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'核定成本费用率'
},
cost
_r
ate
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'cost_rate'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'核定成本费用率'
},
tax
R
ate
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'tax_rate'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'服务开始时间'
},
tax
_r
ate
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'tax_rate'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'服务开始时间'
},
add
ValueUpT
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'add_value_up_type'
,
allowNull
:
true
,
defaultValue
:
'1'
,
comment
:
'增值税累计类型 1按月 2按季度'
},
add
_value_up_t
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'add_value_up_type'
,
allowNull
:
true
,
defaultValue
:
'1'
,
comment
:
'增值税累计类型 1按月 2按季度'
},
tax
UpT
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'tax_up_type'
,
allowNull
:
true
,
defaultValue
:
'1'
,
comment
:
'个税累计类型 1按月累计 2按年累计'
},
tax
_up_t
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'tax_up_type'
,
allowNull
:
true
,
defaultValue
:
'1'
,
comment
:
'个税累计类型 1按月累计 2按年累计'
},
service
R
ate
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'service_rate'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'服务费比例'
},
service
_r
ate
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'service_rate'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'服务费比例'
},
sign
N
otes
:
{
type
:
DataTypes
.
STRING
,
field
:
'sign_notes'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'签约备注'
},
sign
_n
otes
:
{
type
:
DataTypes
.
STRING
,
field
:
'sign_notes'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'签约备注'
},
sign
T
ime
:
{
type
:
DataTypes
.
DATE
,
field
:
'sign_time'
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
'签约时间'
},
sign
_t
ime
:
{
type
:
DataTypes
.
DATE
,
field
:
'sign_time'
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
'签约时间'
},
is
CreateA
ccount
:
{
type
:
DataTypes
.
BOOLEAN
,
field
:
'is_create_account'
,
allowNull
:
true
,
defaultValue
:
false
,
comment
:
'是否建帐'
},
is
_create_a
ccount
:
{
type
:
DataTypes
.
BOOLEAN
,
field
:
'is_create_account'
,
allowNull
:
true
,
defaultValue
:
false
,
comment
:
'是否建帐'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/order/oorder.js
View file @
2bf175d3
...
@@ -4,27 +4,27 @@
...
@@ -4,27 +4,27 @@
*/
*/
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'oorder'
,
{
return
db
.
define
(
'oorder'
,
{
merchant
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'merchant_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'商户id, 为了兼容司机宝'
},
merchant
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'merchant_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'商户id, 为了兼容司机宝'
},
channelOrderNo
:
{
type
:
DataTypes
.
STRING
,
field
:
'order_id'
,
allowNull
:
true
,
comment
:
'订单ID'
},
order_id
:
{
type
:
DataTypes
.
STRING
,
field
:
'order_id'
,
allowNull
:
true
,
comment
:
'订单ID'
},
busi
T
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'busi_type'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务类型 1个体户 2...暂不知道'
},
busi
_t
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'busi_type'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务类型 1个体户 2...暂不知道'
},
busi
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'busi_id'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'业务id'
},
busi
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'busi_id'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'业务id'
},
product
I
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'product_id'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'产品id'
},
product
_i
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'product_id'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'产品id'
},
price
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'price'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'订单价格'
},
price
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'price'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'订单价格'
},
status
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'status'
,
allowNull
:
true
,
defaultValue
:
'0'
,
comment
:
'订单状态'
},
status
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'status'
,
allowNull
:
true
,
defaultValue
:
'0'
,
comment
:
'订单状态'
},
assign
T
ime
:
{
type
:
DataTypes
.
DATE
,
field
:
'assign_time'
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
'分配时间'
},
assign
_t
ime
:
{
type
:
DataTypes
.
DATE
,
field
:
'assign_time'
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
'分配时间'
},
assign
UserI
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'assign_user_id'
,
allowNull
:
true
,
defaultValue
:
'0'
,
comment
:
'分配人id'
},
assign
_user_i
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'assign_user_id'
,
allowNull
:
true
,
defaultValue
:
'0'
,
comment
:
'分配人id'
},
deliver
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商id common微服务下'
},
deliver
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商id common微服务下'
},
desc
:
{
type
:
DataTypes
.
STRING
,
field
:
'desc'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'订单信息'
},
desc
:
{
type
:
DataTypes
.
STRING
,
field
:
'desc'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'订单信息'
},
bd
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'bd_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员id'
},
bd
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'bd_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员id'
},
bd
P
ath
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'bd_path'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员权限路径'
},
bd
_p
ath
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'bd_path'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员权限路径'
},
service
I
tems
:
{
type
:
DataTypes
.
STRING
,
field
:
'service_items'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'服务项json'
},
service
_i
tems
:
{
type
:
DataTypes
.
STRING
,
field
:
'service_items'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'服务项json'
},
service
R
emark
:
{
type
:
DataTypes
.
STRING
,
field
:
'service_remark'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'服务信息备注'
},
service
_r
emark
:
{
type
:
DataTypes
.
STRING
,
field
:
'service_remark'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'服务信息备注'
},
source
I
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'source_id'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'来源id'
},
source
_i
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'source_id'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'来源id'
},
source
N
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'source_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'来源订单号'
},
source
_n
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'source_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'来源订单号'
},
contact
M
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'contact_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'联系电话'
},
contact
_m
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'contact_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'联系电话'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/order/oorderdeliver.js
View file @
2bf175d3
...
@@ -4,21 +4,21 @@
...
@@ -4,21 +4,21 @@
*/
*/
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'oorderdeliver'
,
{
return
db
.
define
(
'oorderdeliver'
,
{
order
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'order_id'
,
allowNull
:
false
,
comment
:
'订单ID'
},
order
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'order_id'
,
allowNull
:
false
,
comment
:
'订单ID'
},
deliver
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_id'
,
allowNull
:
false
,
comment
:
'交付商id'
},
deliver
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_id'
,
allowNull
:
false
,
comment
:
'交付商id'
},
deliver
N
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_name'
,
allowNull
:
false
,
comment
:
'交付商名称'
},
deliver
_n
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_name'
,
allowNull
:
false
,
comment
:
'交付商名称'
},
deliver
D
ivide
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_divide'
,
allowNull
:
false
,
comment
:
'订单分成'
},
deliver
_d
ivide
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_divide'
,
allowNull
:
false
,
comment
:
'订单分成'
},
audit
R
esult
:
{
type
:
DataTypes
.
STRING
,
field
:
'audit_result'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'审核结果'
},
audit
_r
esult
:
{
type
:
DataTypes
.
STRING
,
field
:
'audit_result'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'审核结果'
},
audit
R
emark
:
{
type
:
DataTypes
.
STRING
,
field
:
'audit_remark'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付审核备注'
},
audit
_r
emark
:
{
type
:
DataTypes
.
STRING
,
field
:
'audit_remark'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付审核备注'
},
deliver
MailA
ddr
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_addr'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付地址'
},
deliver
_mail_a
ddr
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_addr'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付地址'
},
deliver
MailT
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_to'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'收件人'
},
deliver
_mail_t
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_to'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'收件人'
},
deliver
MailM
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'联系电话'
},
deliver
_mail_m
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'联系电话'
},
deliver
C
ontent
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_content'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付内容'
},
deliver
_c
ontent
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_content'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付内容'
},
deliver
MailN
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号'
},
deliver
_mail_n
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号'
},
deliver
MailI
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号图片'
},
deliver
_mail_i
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号图片'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/order/oorderinforeg.js
View file @
2bf175d3
...
@@ -4,29 +4,29 @@
...
@@ -4,29 +4,29 @@
*/
*/
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'oorderinforeg'
,
{
return
db
.
define
(
'oorderinforeg'
,
{
legal
N
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'legal_name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人姓名'
},
legal
_n
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'legal_name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人姓名'
},
id
C
ard
:
{
type
:
DataTypes
.
STRING
,
field
:
'id_card'
,
allowNull
:
true
,
comment
:
'法人身份证'
},
id
_c
ard
:
{
type
:
DataTypes
.
STRING
,
field
:
'id_card'
,
allowNull
:
true
,
comment
:
'法人身份证'
},
legal
M
obile
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'legal_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人电话'
},
legal
_m
obile
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'legal_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人电话'
},
names
:
{
type
:
DataTypes
.
STRING
,
field
:
'names'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'个体户名称'
},
names
:
{
type
:
DataTypes
.
STRING
,
field
:
'names'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'个体户名称'
},
capital
:
{
type
:
DataTypes
.
STRING
,
field
:
'capital'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'注册资本'
},
capital
:
{
type
:
DataTypes
.
STRING
,
field
:
'capital'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'注册资本'
},
domicile
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'domicile_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'注册地id'
},
domicile
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'domicile_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'注册地id'
},
domicile
N
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'domicile_name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'注册地名称'
},
domicile
_n
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'domicile_name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'注册地名称'
},
business
ScopeI
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_scope_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围id'
},
business
_scope_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_scope_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围id'
},
business
T
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_type'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围'
},
business
_t
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_type'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围'
},
business
S
cope
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_scope'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围详情'
},
business
_s
cope
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_scope'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围详情'
},
idcard
F
ront
:
{
type
:
DataTypes
.
STRING
,
field
:
'idcard_front'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'身份证正面照片'
},
idcard
_f
ront
:
{
type
:
DataTypes
.
STRING
,
field
:
'idcard_front'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'身份证正面照片'
},
idcard
B
ack
:
{
type
:
DataTypes
.
STRING
,
field
:
'idcard_back'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'身份证反面照片'
},
idcard
_b
ack
:
{
type
:
DataTypes
.
STRING
,
field
:
'idcard_back'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'身份证反面照片'
},
other
F
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'other_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'其他文件'
},
other
_f
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'other_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'其他文件'
},
notes
:
{
type
:
DataTypes
.
STRING
,
field
:
'notes'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'备注'
},
notes
:
{
type
:
DataTypes
.
STRING
,
field
:
'notes'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'备注'
},
guest
MailA
ddr
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_addr'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'邮寄客户地址'
},
guest
_mail_a
ddr
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_addr'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'邮寄客户地址'
},
guest
MailT
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_to'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户收件人'
},
guest
_mail_t
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_to'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户收件人'
},
guest
MailM
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户收件人电话'
},
guest
_mail_m
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户收件人电话'
},
guest
MailN
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户快递单号'
},
guest
_mail_n
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户快递单号'
},
guest
MailI
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号图片'
},
guest
_mail_i
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号图片'
},
guest
AccpetF
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_accpet_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户验收文件'
},
guest
_accpet_f
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_accpet_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户验收文件'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/order/oorderprocess.js
View file @
2bf175d3
...
@@ -4,20 +4,20 @@
...
@@ -4,20 +4,20 @@
*/
*/
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'oorderprocess'
,
{
return
db
.
define
(
'oorderprocess'
,
{
product
I
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'product_id'
,
allowNull
:
true
,
comment
:
'产品ID'
},
product
_i
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'product_id'
,
allowNull
:
true
,
comment
:
'产品ID'
},
order
I
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'order_id'
,
allowNull
:
true
,
comment
:
'订单号'
},
order
_i
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'order_id'
,
allowNull
:
true
,
comment
:
'订单号'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
""
,
comment
:
'产品名称'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
""
,
comment
:
'产品名称'
},
status
:
{
type
:
DataTypes
.
STRING
,
field
:
'status'
,
allowNull
:
true
,
comment
:
'状态'
},
status
:
{
type
:
DataTypes
.
STRING
,
field
:
'status'
,
allowNull
:
true
,
comment
:
'状态'
},
func
:
{
type
:
DataTypes
.
STRING
,
field
:
'func'
,
allowNull
:
false
,
comment
:
'状态执行方法名称'
},
func
:
{
type
:
DataTypes
.
STRING
,
field
:
'func'
,
allowNull
:
false
,
comment
:
'状态执行方法名称'
},
next
S
tatus
:
{
type
:
DataTypes
.
STRING
,
field
:
'next_status'
,
allowNull
:
true
,
comment
:
'下一个状态'
},
next
_s
tatus
:
{
type
:
DataTypes
.
STRING
,
field
:
'next_status'
,
allowNull
:
true
,
comment
:
'下一个状态'
},
name1
:
{
type
:
DataTypes
.
STRING
,
field
:
'name1'
,
allowNull
:
true
,
comment
:
'状态1'
},
name1
:
{
type
:
DataTypes
.
STRING
,
field
:
'name1'
,
allowNull
:
true
,
comment
:
'状态1'
},
name2
:
{
type
:
DataTypes
.
STRING
,
field
:
'name2'
,
allowNull
:
true
,
comment
:
'状态2'
},
name2
:
{
type
:
DataTypes
.
STRING
,
field
:
'name2'
,
allowNull
:
true
,
comment
:
'状态2'
},
name3
:
{
type
:
DataTypes
.
STRING
,
field
:
'name3'
,
allowNull
:
true
,
comment
:
'状态3'
},
name3
:
{
type
:
DataTypes
.
STRING
,
field
:
'name3'
,
allowNull
:
true
,
comment
:
'状态3'
},
name4
:
{
type
:
DataTypes
.
STRING
,
field
:
'name4'
,
allowNull
:
true
,
comment
:
'状态4'
},
name4
:
{
type
:
DataTypes
.
STRING
,
field
:
'name4'
,
allowNull
:
true
,
comment
:
'状态4'
},
sort
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1000
,
comment
:
'排序'
},
sort
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1000
,
comment
:
'排序'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/order/osource.js
View file @
2bf175d3
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'osource'
,
{
return
db
.
define
(
'osource'
,
{
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'平台来源'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'平台来源'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/product/oprocess.js
View file @
2bf175d3
...
@@ -6,9 +6,9 @@ module.exports = function (db, DataTypes) {
...
@@ -6,9 +6,9 @@ module.exports = function (db, DataTypes) {
return
db
.
define
(
'oorderdeliver'
,
{
return
db
.
define
(
'oorderdeliver'
,
{
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'流程名称'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'流程名称'
},
status
:
{
type
:
DataTypes
.
STRING
,
field
:
'status'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'流程状态'
},
status
:
{
type
:
DataTypes
.
STRING
,
field
:
'status'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'流程状态'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/product/oproduct.js
View file @
2bf175d3
...
@@ -8,11 +8,11 @@ module.exports = function (db, DataTypes) {
...
@@ -8,11 +8,11 @@ module.exports = function (db, DataTypes) {
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
true
,
comment
:
'产品名称'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
true
,
comment
:
'产品名称'
},
desc
:
{
type
:
DataTypes
.
STRING
(
200
),
field
:
'desc'
,
allowNull
:
false
,
defaultValue
:
""
,
comment
:
'产品描述'
},
desc
:
{
type
:
DataTypes
.
STRING
(
200
),
field
:
'desc'
,
allowNull
:
false
,
defaultValue
:
""
,
comment
:
'产品描述'
},
pid
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'pid'
,
allowNull
:
true
,
comment
:
'父ID'
},
pid
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'pid'
,
allowNull
:
true
,
comment
:
'父ID'
},
is
C
hoose
:
{
type
:
DataTypes
.
BOOLEAN
,
field
:
'is_choose'
,
allowNull
:
false
,
defaultValue
:
false
,
comment
:
'是否选择'
},
is
_c
hoose
:
{
type
:
DataTypes
.
BOOLEAN
,
field
:
'is_choose'
,
allowNull
:
false
,
defaultValue
:
false
,
comment
:
'是否选择'
},
sort
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1000
,
comment
:
'排序'
},
sort
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1000
,
comment
:
'排序'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/product/oproductprocess.js
View file @
2bf175d3
...
@@ -5,19 +5,19 @@
...
@@ -5,19 +5,19 @@
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'oproductprocess'
,
{
return
db
.
define
(
'oproductprocess'
,
{
product
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'product_id'
,
allowNull
:
true
,
comment
:
'产品ID'
},
product
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'product_id'
,
allowNull
:
true
,
comment
:
'产品ID'
},
// name: { type: DataTypes.STRING(200), field: 'name', allowNull: false, defaultValue:"", comment:'产品名称'},
// name: { type: DataTypes.STRING(200), field: 'name', allowNull: false, defaultValue:"", comment:'产品名称'},
// status: {type: DataTypes.STRING, field: 'status', allowNull: true, comment:'状态' },
// status: {type: DataTypes.STRING, field: 'status', allowNull: true, comment:'状态' },
func
:
{
type
:
DataTypes
.
STRING
,
field
:
'func'
,
allowNull
:
false
,
comment
:
'状态执行方法名称'
},
func
:
{
type
:
DataTypes
.
STRING
,
field
:
'func'
,
allowNull
:
false
,
comment
:
'状态执行方法名称'
},
next
S
tatus
:
{
type
:
DataTypes
.
STRING
,
field
:
'next_status'
,
allowNull
:
true
,
comment
:
'下一个状态'
},
next
_s
tatus
:
{
type
:
DataTypes
.
STRING
,
field
:
'next_status'
,
allowNull
:
true
,
comment
:
'下一个状态'
},
name1
:
{
type
:
DataTypes
.
STRING
,
field
:
'name1'
,
allowNull
:
true
,
comment
:
'状态1'
},
name1
:
{
type
:
DataTypes
.
STRING
,
field
:
'name1'
,
allowNull
:
true
,
comment
:
'状态1'
},
name2
:
{
type
:
DataTypes
.
STRING
,
field
:
'name2'
,
allowNull
:
true
,
comment
:
'状态2'
},
name2
:
{
type
:
DataTypes
.
STRING
,
field
:
'name2'
,
allowNull
:
true
,
comment
:
'状态2'
},
name3
:
{
type
:
DataTypes
.
STRING
,
field
:
'name3'
,
allowNull
:
true
,
comment
:
'状态3'
},
name3
:
{
type
:
DataTypes
.
STRING
,
field
:
'name3'
,
allowNull
:
true
,
comment
:
'状态3'
},
name4
:
{
type
:
DataTypes
.
STRING
,
field
:
'name4'
,
allowNull
:
true
,
comment
:
'状态4'
},
name4
:
{
type
:
DataTypes
.
STRING
,
field
:
'name4'
,
allowNull
:
true
,
comment
:
'状态4'
},
sort
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1
,
comment
:
'排序'
},
sort
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1
,
comment
:
'排序'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
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