mysql变更格式
数据库:ucs
表名:tb_mobile_report
-- auto-generated definition
create table tb_mobile_report
(
id int auto_increment
primary key,
order_no varchar(64) null
comment '订单号',
company_name_digest varchar(32) default '' not null
comment 'digest',
company_name varchar(255) default '' not null,
agent_id int(10) default '0' not null
comment '代理商id',
phone varchar(20) default '' not null
comment '手机号',
source_url varchar(255) default '' not null
comment '原接口提供下载地址',
local_url varchar(255) default '' not null
comment '本地缓存下载地址',
status tinyint(1) default '1' not null
comment '状态',
create_time datetime default CURRENT_TIMESTAMP not null,
last_update_time timestamp default CURRENT_TIMESTAMP not null
on update CURRENT_TIMESTAMP
)
comment '移动端报告下载';
create index tb_mobile_report_agent_id
on tb_mobile_report (agent_id);
create index tb_mobile_report_digest
on tb_mobile_report (company_name_digest);
create index tb_mobile_report_orderno
on tb_mobile_report (order_no);
create index tb_mobile_report_phone
on tb_mobile_report (phone);