mysql变更格式
数据库:wiki
表名:tb_pro_paper_report_apply
## 专业纸质报告申请功能
use wiki;
create table `tb_pro_paper_report_apply`(
`id` int auto_increment primary key ,
`company_name_digest` varchar(32) default '' not null comment 'digest',
`company_name` varchar(255) default '' not null comment '公司名',
`name` varchar(255) default '' not null comment '收件人',
`phone` varchar(20) default '' not null comment '联系电话',
`country` varchar(50) default '' not null comment '国籍',
`province` varchar(50) default '' not null comment '省份',
`city` varchar(50) default '' not null comment '城市',
`district` varchar(50) default '' not null comment '区域',
`local` varchar(255) default '' not null comment '详细地址',
`courier_company` varchar(255) default '' not null comment '快递公司',
`tracking_number` varchar(255) default '' not null comment '快递单号',
`send_time` datetime null comment '邮寄时间',
`status` int not null default 1 comment '状态1待寄出(报告制作中),状态2已寄出',
`operation` varchar(255) default '' not null comment '操作人',
`create_time` datetime default CURRENT_TIMESTAMP not null comment '创建时间(报告申请时间)',
`last_update_time` timestamp default CURRENT_TIMESTAMP not null on update CURRENT_TIMESTAMP
)engine =InnoDB default charset = utf8 comment '专业纸质报告申请表';
create index tb_pro_paper_report_apply_company_name_digest on tb_pro_paper_report_apply (company_name_digest);
create index tb_pro_paper_report_apply_company_name on tb_pro_paper_report_apply (company_name);