Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-wx-store-sharer
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wx
yanxuan-wx-store-sharer
Commits
3b1aadff
Commit
3b1aadff
authored
Mar 14, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调问题处理
parent
5028dc86
Pipeline
#71640
passed with stages
in 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
20250311.sql
doc/sql/20250311.sql
+14
-14
No files found.
doc/sql/20250311.sql
View file @
3b1aadff
...
...
@@ -2,13 +2,13 @@
CREATE
TABLE
`SHARER_INFO`
(
`id`
bigint
(
20
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`open_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'用户开放ID'
,
`sharer_appid`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'推客应用ID'
,
`bind_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'绑定时间'
,
`commission_ratio`
decimal
(
5
,
2
)
NOT
NULL
DEFAULT
'0.00
'
COMMENT
'佣金比例'
,
`commission_type`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'佣金类型'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
`open_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'用户开放ID'
,
`sharer_appid`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'推客应用ID'
,
`bind_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'绑定时间'
,
`commission_ratio`
varchar
(
32
)
NOT
NULL
DEFAULT
'
'
COMMENT
'佣金比例'
,
`commission_type`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'佣金类型'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`uk_open_id`
(
`open_id`
),
KEY
`idx_sharer_appid`
(
`sharer_appid`
)
...
...
@@ -19,14 +19,14 @@ CREATE TABLE `SHARER_INFO`
CREATE
TABLE
`SHARER_PRODUCT_COMMISSION`
(
`id`
bigint
(
20
)
unsigned
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键ID'
,
`open_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'用户开放ID'
,
`sharer_appid`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'推客应用ID'
,
`product_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'商品ID'
,
`commission_ratio`
decimal
(
5
,
2
)
NOT
NULL
DEFAULT
'0.00
'
COMMENT
'佣金比例'
,
`commission_type`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'佣金类型'
,
`open_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'用户开放ID'
,
`sharer_appid`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'推客应用ID'
,
`product_id`
varchar
(
64
)
NOT
NULL
DEFAULT
''
COMMENT
'商品ID'
,
`commission_ratio`
varchar
(
32
)
NOT
NULL
DEFAULT
'
'
COMMENT
'佣金比例'
,
`commission_type`
varchar
(
32
)
NOT
NULL
DEFAULT
''
COMMENT
'佣金类型'
,
`unset`
int
(
11
)
NOT
NULL
DEFAULT
'1'
COMMENT
'是否未配置,1:未配置,取默认佣金比例,0:已配置'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`id`
),
KEY
`idx_open_id`
(
`open_id`
),
KEY
`idx_sharer_appid`
(
`sharer_appid`
)
...
...
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