create table tb_shop(
shop_id int(10) not null auto_increment,
owner_id int(10) not null comment '店铺创建人',
shop_name varchar(256) not null,
area_id int(5) default null,
shop_category_id int(11) defalut null,
shop_desc varchar(2000) defalut null,
shop_addr varchar(200) default null,
phone varchar(128) default null,
shop_img varchar(1024) default null,
priority int(3) default null,
create_time datetime default null,
last_edit_time datetime default null,
enable_status int(2) not null default 0,
advice varchar(255) default null,
primary key (shop_id),
constraint fk_shop_area foreign key (area_id)
references tb_area (area_id),
constraint fk_shop_profile foreign key (owner_id)
references tb_person_info (user_id),
constraint fk_shop_shopcate foreign key
(shop_category_id) references tb_shop_category
(shop_category_id)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
怎么都是通不过 看不到哪里出问题了
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程