sell 项目 类目表 设计 及 创建

1.数据库设计

2.类目表 创建

/**
 * 类目表
 */
create table `product_category` (
  `category_id` int not null auto_increment,
  `category_name` varchar(64) not null comment '类目名字',
  `category_type` int not null comment '类目编号',
  `create_time` timestamp not null default current_timestamp comment '创建时间',
  `update_time` timestamp not null default current_timestamp on update current_timestamp comment '修改时间',
  primary key (`category_id`),
  unique key `uqe_category_type` (`category_type`)
) comment '类目表';

.

posted @ 2019-02-13 23:22  每天都要进步一点点  阅读(309)  评论(0编辑  收藏  举报