Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
OSmall
/
linjiashop
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 49b47e7d
authored
Dec 19, 2020
by
王能兵
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev' into 'master'
开放平台相关数据表修改 See merge request
!2
2 parents
bee44426
358df473
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
doc/database-open-platform.sql
doc/database-open-platform.sql
View file @
49b47e7
...
@@ -8,6 +8,7 @@ CREATE TABLE `t_platform_customer` (
...
@@ -8,6 +8,7 @@ CREATE TABLE `t_platform_customer` (
`contact_email`
VARCHAR
(
32
)
DEFAULT
NULL
COMMENT
'联系邮箱'
,
`contact_email`
VARCHAR
(
32
)
DEFAULT
NULL
COMMENT
'联系邮箱'
,
`province`
INT
(
11
)
DEFAULT
NULL
COMMENT
'省份 sys_area的id'
,
`province`
INT
(
11
)
DEFAULT
NULL
COMMENT
'省份 sys_area的id'
,
`city`
INT
(
11
)
DEFAULT
NULL
COMMENT
'城市 sys_area的id'
,
`city`
INT
(
11
)
DEFAULT
NULL
COMMENT
'城市 sys_area的id'
,
`area`
int
(
11
)
DEFAULT
NULL
COMMENT
'区 sys_area的id'
,
`address`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'详细地址'
,
`address`
VARCHAR
(
128
)
DEFAULT
NULL
COMMENT
'详细地址'
,
`status`
TINYINT
(
2
)
DEFAULT
NULL
COMMENT
'账号状态 0 停用 1 正常 2 待审核 3 审核未通过'
,
`status`
TINYINT
(
2
)
DEFAULT
NULL
COMMENT
'账号状态 0 停用 1 正常 2 待审核 3 审核未通过'
,
`public_key`
VARCHAR
(
256
)
DEFAULT
NULL
COMMENT
'公钥'
,
`public_key`
VARCHAR
(
256
)
DEFAULT
NULL
COMMENT
'公钥'
,
...
@@ -22,12 +23,13 @@ CREATE TABLE `t_platform_customer` (
...
@@ -22,12 +23,13 @@ CREATE TABLE `t_platform_customer` (
UNIQUE
KEY
`contact_channel_number`
(
`contact_number`
,
`channel_number`
)
UNIQUE
KEY
`contact_channel_number`
(
`contact_number`
,
`channel_number`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'客户管理表'
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'客户管理表'
;
DROP
TABLE
IF
EXISTS
`t_platform_
customer
`
;
DROP
TABLE
IF
EXISTS
`t_platform_
device
`
;
CREATE
TABLE
`t_platform_device`
(
CREATE
TABLE
`t_platform_device`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`device_sn`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'设备SN'
,
`device_sn`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'设备SN'
,
`device_type`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'类型'
,
`device_type`
varchar
(
32
)
DEFAULT
NULL
COMMENT
'类型'
,
`customer_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'客户id t_platform_customer表的id'
,
`customer_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'客户id t_platform_customer表的id'
,
`user_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'用户id t_platform_user表的id'
,
`activat_time`
datetime
DEFAULT
NULL
COMMENT
'激活时间'
,
`activat_time`
datetime
DEFAULT
NULL
COMMENT
'激活时间'
,
`status`
tinyint
(
2
)
DEFAULT
NULL
COMMENT
'设备状态 0 异常 1 正常'
,
`status`
tinyint
(
2
)
DEFAULT
NULL
COMMENT
'设备状态 0 异常 1 正常'
,
`create_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`create_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
...
@@ -48,6 +50,7 @@ CREATE TABLE `t_platform_user` (
...
@@ -48,6 +50,7 @@ CREATE TABLE `t_platform_user` (
`city`
int
(
11
)
DEFAULT
NULL
COMMENT
'城市 sys_area的id'
,
`city`
int
(
11
)
DEFAULT
NULL
COMMENT
'城市 sys_area的id'
,
`customer_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'客户id t_platform_customer表的id'
,
`customer_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'客户id t_platform_customer表的id'
,
`last_login_time`
datetime
DEFAULT
NULL
COMMENT
'最后登录时间'
,
`last_login_time`
datetime
DEFAULT
NULL
COMMENT
'最后登录时间'
,
`status`
tinyint
(
2
)
DEFAULT
1
COMMENT
'用户状态 0 注销 1 正常'
,
`app_account_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'APP 账户ID'
,
`app_account_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'APP 账户ID'
,
`tu_ya_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'涂鸦平台ID'
,
`tu_ya_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'涂鸦平台ID'
,
`create_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间 注册时间'
,
`create_time`
datetime
DEFAULT
NULL
COMMENT
'创建时间 注册时间'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment