t_product.sql 687 B

123456789101112
  1. -- 产品信息表 t_product
  2. create table t_product(
  3. id int not null auto_increment comment 'id',
  4. code varchar(10) not null comment '产品编号',
  5. name varchar(20) not null default '' comment '产品名称',
  6. enuu int not null default 0 comment '所属保理商',
  7. create_time timestamp not null default current_timestamp comment '创建时间',
  8. update_time timestamp not null default current_timestamp on update current_timestamp comment '更新时间',
  9. primary key(id) comment '主键,没有重复',
  10. unique index(code) comment '产品编号,唯一索引' ,
  11. unique index(name) comment '产品名称,唯一索引'
  12. )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT '产品信息表';