Commit 49b47e7d by 王能兵

Merge branch 'dev' into 'master'

开放平台相关数据表修改

See merge request !2
2 parents bee44426 358df473
......@@ -8,6 +8,7 @@ CREATE TABLE `t_platform_customer` (
`contact_email` VARCHAR(32) DEFAULT NULL COMMENT '联系邮箱',
`province` 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 '详细地址',
`status` TINYINT(2) DEFAULT NULL COMMENT '账号状态 0 停用 1 正常 2 待审核 3 审核未通过',
`public_key` VARCHAR(256) DEFAULT NULL COMMENT '公钥',
......@@ -22,12 +23,13 @@ CREATE TABLE `t_platform_customer` (
UNIQUE KEY `contact_channel_number` (`contact_number`, `channel_number`)
) 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` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`device_sn` varchar(32) DEFAULT NULL COMMENT '设备SN',
`device_type` varchar(32) DEFAULT NULL COMMENT '类型',
`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 '激活时间',
`status` tinyint(2) DEFAULT NULL COMMENT '设备状态 0 异常 1 正常',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
......@@ -48,6 +50,7 @@ CREATE TABLE `t_platform_user` (
`city` int(11) DEFAULT NULL COMMENT '城市 sys_area的id',
`customer_id` int(11) DEFAULT NULL COMMENT '客户id t_platform_customer表的id',
`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',
`tu_ya_id` int(11) DEFAULT NULL COMMENT '涂鸦平台ID',
`create_time` datetime DEFAULT NULL COMMENT '创建时间 注册时间',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!