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
77e0ffbf
Commit
77e0ffbf
authored
Mar 29, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加产品id
parent
c1755347
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
28 deletions
+25
-28
center-app/app/base/db/models/dbproduct/producttype.js
+25
-28
No files found.
center-app/app/base/db/models/dbproduct/producttype.js
View file @
77e0ffbf
...
...
@@ -2,33 +2,30 @@ const system = require("../../../system");
const
settings
=
require
(
"../../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"producttype"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
//应用id
p_id
:
DataTypes
.
INTEGER
,
//父id
type_code
:
DataTypes
.
STRING
(
64
),
type_name
:
DataTypes
.
STRING
(
64
),
channel_type_code
:
DataTypes
.
STRING
(
64
),
channel_type_name
:
DataTypes
.
STRING
(
64
),
type_pic
:
DataTypes
.
STRING
(
512
),
type_desc
:
DataTypes
.
STRING
(
1024
),
//描述
type_icon
:
DataTypes
.
STRING
(
512
),
is_enabled
:
{
//状态 0禁用 1启用
type
:
DataTypes
.
BOOLEAN
,
defaultValue
:
true
,
},
},
{
paranoid
:
false
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
timestamps
:
true
,
updatedAt
:
false
,
tableName
:
'p_product_type'
,
validate
:
{
},
indexes
:
[
]
return
db
.
define
(
"producttype"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
//应用id
p_id
:
DataTypes
.
INTEGER
,
//父id
type_code
:
DataTypes
.
STRING
(
64
),
type_name
:
DataTypes
.
STRING
(
64
),
channel_type_code
:
DataTypes
.
STRING
(
64
),
channel_type_name
:
DataTypes
.
STRING
(
64
),
type_pic
:
DataTypes
.
STRING
(
512
),
type_desc
:
DataTypes
.
STRING
(
1024
),
//描述
type_icon
:
DataTypes
.
STRING
(
512
),
service_product_id
:
DataTypes
.
STRING
(
255
),
is_enabled
:
{
//状态 0禁用 1启用
type
:
DataTypes
.
BOOLEAN
,
defaultValue
:
true
,
},
},
{
paranoid
:
false
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
timestamps
:
true
,
updatedAt
:
false
,
tableName
:
'p_product_type'
,
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