mysql变更格式
数据库:ucs
表名:trusted_goods
sql:
# 可信商家商品表
create table `trusted_goods`(
`id` int(11) not null auto_increment,
`goods_name` varchar(80) not null default '' comment '商品名',
`goods_img` varchar(255) not null default '' comment '商品封面图',
`goods_cate` int(10) comment '商品分类编号(分类名是另外爬取的数据)',
`goods_num` int(10) not null default 0 comment '商品数量',
`goods_price` decimal(10,2) DEFAULT NULL comment '商品价格',
`goods_detail` text comment '商品介绍',
`send_date` varchar(20) not null default '' comment '发货期限(用var类型的原因:原型上该字段填的面议)',
`order_num` varchar(20) not null default '' comment '起订量(用var类型的原因:原型上该字段填的200套,描述单位不确定)',
`status` tinyint(1) not null default 1 comment '状态:1待审,2审核通过,3不通过',
`attach_msg` text comment '附加信息,审核不通过时必填',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;