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
25859d1b
Commit
25859d1b
authored
Apr 15, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加字段
parent
b27c4c6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
36 deletions
+35
-36
center-app/app/base/db/models/dbproduct/product.js
+35
-36
No files found.
center-app/app/base/db/models/dbproduct/product.js
View file @
25859d1b
...
...
@@ -2,41 +2,40 @@ const system = require("../../../system");
const
settings
=
require
(
"../../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"product"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
//应用id
path_code
:
DataTypes
.
STRING
(
512
),
//产品类型编码路径,如:1/2
path_name
:
DataTypes
.
STRING
(
512
),
//产品类型名称路径,如:商标服务/商标注册
item_code
:
DataTypes
.
STRING
(
100
),
//产品编码
item_name
:
DataTypes
.
STRING
(
100
),
//产品名称
pic_url
:
DataTypes
.
STRING
(
500
),
//产品图片地址
icon_url
:
DataTypes
.
STRING
(
500
),
//产品icon图片地址
desc_url
:
DataTypes
.
STRING
(
500
),
//产品详情图片地址
product_short_desc
:
DataTypes
.
STRING
(
200
),
//简介
product_desc
:
DataTypes
.
STRING
(
1024
),
//产品描述列表
channel_item_code
:
DataTypes
.
STRING
(
100
),
channel_item_name
:
DataTypes
.
STRING
(
100
),
service_business_code
:
DataTypes
.
STRING
(
100
),
service_business_name
:
DataTypes
.
STRING
(
100
),
pay_after_jump_h5url
:
DataTypes
.
STRING
(
500
),
pay_after_jump_pcurl
:
DataTypes
.
STRING
(
500
),
is_enabled
:
{
//状态 0禁用 1启用
type
:
DataTypes
.
BOOLEAN
,
defaultValue
:
true
,
},
sort
:
DataTypes
.
INTEGER
,
//排序
},
{
paranoid
:
false
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
timestamps
:
true
,
updatedAt
:
false
,
tableName
:
'p_product'
,
validate
:
{
},
indexes
:
[
]
return
db
.
define
(
"product"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
//应用id
path_code
:
DataTypes
.
STRING
(
512
),
//产品类型编码路径,如:1/2
path_name
:
DataTypes
.
STRING
(
512
),
//产品类型名称路径,如:商标服务/商标注册
item_code
:
DataTypes
.
STRING
(
100
),
//产品编码
item_name
:
DataTypes
.
STRING
(
100
),
//产品名称
pic_url
:
DataTypes
.
STRING
(
500
),
//产品图片地址
icon_url
:
DataTypes
.
STRING
(
500
),
//产品icon图片地址
desc_url
:
DataTypes
.
STRING
(
500
),
//产品详情图片地址
product_short_desc
:
DataTypes
.
STRING
(
200
),
//简介
product_desc
:
DataTypes
.
STRING
(
1024
),
//产品描述列表
channel_item_code
:
DataTypes
.
STRING
(
100
),
channel_item_name
:
DataTypes
.
STRING
(
100
),
service_business_code
:
DataTypes
.
STRING
(
100
),
service_business_name
:
DataTypes
.
STRING
(
100
),
pay_after_jump_h5url
:
DataTypes
.
STRING
(
500
),
pay_after_jump_pcurl
:
DataTypes
.
STRING
(
500
),
pc_pic_url
:
DataTypes
.
STRING
(
500
),
//pc端产品封面
pc_desc_url
:
DataTypes
.
STRING
(
2048
),
//pc端产品详情
is_enabled
:
{
//状态 0禁用 1启用
type
:
DataTypes
.
BOOLEAN
,
defaultValue
:
true
,
},
sort
:
DataTypes
.
INTEGER
,
//排序
is_package
:
DataTypes
.
INTEGER
,
//是否是套餐,0否,1是
},
{
paranoid
:
false
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
timestamps
:
true
,
updatedAt
:
false
,
tableName
:
'p_product'
,
validate
:
{},
indexes
:
[]
});
}
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