示例:
drop table if exists cpa_detail;
/*==============================================================*/
/* Table: cpa_detail */
/*==============================================================*/
create table cpa_detail
(
id varchar(32) not null comment 'id',
ad_id varchar(32) default NULL comment '广告id',
batch_num varchar(100) default NULL comment '批次号',
operated_at datetime default NULL comment '操作时间',
operate_type int(2) default 0 comment '操作类型,1-导出,2-导入',
total_num int(11) default 0 comment '总数',
exception_num int(11) default 0 comment '异常数',
error_detail text default NULL comment '错误详情',
file_name varchar(255) default NULL comment '文件名称',
created_at datetime default NULL comment '创建时间',
updated_at datetime default NULL comment '修改时间',
status int(2) default 0 comment '状态',
primary key (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='广告导入导出详情';