2020尚硅谷 谷粒商城 建表sql语句
gulimall_pms 商品 drop table if exists pms_attr; drop table if exists pms_attr_attrgroup_relation; drop table if exists pms_attr_group; drop table if exists pms_brand; drop table if exists pms_category; drop table if exists pms_category_brand_relation; drop table if exists pms_comment_replay; drop table if exists pms_product_attr_value; drop table if exists pms_sku_images; drop table if exists pms_sku_info; drop table if exists pms_sku_sale_attr_value; drop table if exists pms_spu_comment; drop table if exists pms_spu_images; drop table if exists pms_spu_info; drop table if exists pms_spu_info_desc; /*==============================================================*/ /* Table: pms_attr */ /*==============================================================*/ create table pms_attr ( attr_id bigint not null auto_increment comment '属性id', attr_name char(30) comment '属性名', search_type tinyint comment '是否需要检索[0-不需要,1-需要]', icon varchar(255) comment '属性图标', value_select char(255) comment '可选值列表[用逗号分隔]', attr_type tinyint comment '属性类型[0-销售属性,1-基本属性,2-既是销售属性又是基本属性]', enable bigint comment '启用状态[0 - 禁用,1 - 启用]', catelog_id bigint comment '所属分类', show_desc tinyint comment '快速展示【是否展示在介绍上;0-否 1-是】,在sku中仍然可以调整', primary key (attr_id) ); alter table pms_attr comment '商品属性'; /*==============================================================*/ /* Table: pms_attr_attrgroup_relation */ /*==============================================================*/ create table pms_attr_attrgroup_relation ( id bigint not null auto_increment comment 'id', attr_id bigint comment '属性id', attr_group_id bigint comment '属性分组id', attr_sort int comment '属性组内排序', primary key (id) ); alter table pms_attr_attrgroup_relation comment '属性&属性分组关联'; /*==============================================================*/ /* Table: pms_attr_group */ /*==============================================================*/ create table pms_attr_group ( attr_group_id bigint not null auto_increment comment '分组id', attr_group_name char(20) comment '组名', sort int comment '排序', descript varchar(255) comment '描述', icon varchar(255) comment '组图标', catelog_id bigint comment '所属分类id', primary key (attr_group_id) ); alter table pms_attr_group comment '属性分组'; /*==============================================================*/ /* Table: pms_brand */ /*==============================================================*/ create table pms_brand ( brand_id bigint not null auto_increment comment '品牌id', name char(50) comment '品牌名', logo varchar(2000) comment '品牌logo地址', descript longtext comment '介绍', show_status tinyint comment '显示状态[0-不显示;1-显示]', first_letter char(1) comment '检索首字母', sort int comment '排序', primary key (brand_id) ); alter table pms_brand comment '品牌'; /*==============================================================*/ /* Table: pms_category */ /*==============================================================*/ create table pms_category ( cat_id bigint not null auto_increment comment '分类id', name char(50) comment '分类名称', parent_cid bigint comment '父分类id', cat_level int comment '层级', show_status tinyint comment '是否显示[0-不显示,1显示]', sort int comment '排序', icon char(255) comment '图标地址', product_unit char(50) comment '计量单位', product_count int comment '商品数量', primary key (cat_id) ); alter table pms_category comment '商品三级分类'; /*==============================================================*/ /* Table: pms_category_brand_relation */ /*==============================================================*/ create table pms_category_brand_relation ( id bigint not null auto_increment, brand_id bigint comment '品牌id', catelog_id bigint comment '分类id', brand_name varchar(255), catelog_name varchar(255), primary key (id) ); alter table pms_category_brand_relation comment '品牌分类关联'; /*==============================================================*/ /* Table: pms_comment_replay */ /*==============================================================*/ create table pms_comment_replay ( id bigint not null auto_increment comment 'id', comment_id bigint comment '评论id', reply_id bigint comment '回
sql.zip (7个子文件)
sql
gulimall_oms.sql 11KB
sys_menus.sql 6KB
gulimall_pms.sql 11KB
gulimall_wms.sql 5KB
pms_catelog.sql 58KB
gulimall_sms.sql 12KB
gulimall_ums.sql 8KB- 1
- 粉丝: 4
我的内容管理
展开
我的资源
快来上传第一个资源
我的收益 登录查看自己的收益
我的积分
登录查看自己的积分
我的C币
登录后查看C币余额
我的收藏
我的下载
下载帮助
前往需求广场,查看用户热搜最新资源
- (源码)基于Spring Boot框架的码匠社区.zip
- 基于PLC的数控切割机控制系统.docx
- 基于单片机抢答器大学本科方案设计书1.doc
- 基于图像处理实现人与机械手象棋对弈系统.doc
- 山东理工重点大学农机械化及其自动化(.doc
- 互联网时代的企业培训管理.ppt
- 实用Word使用技巧大全Excel使用技巧大全超全.doc
- 随着物联网的发展-企业将寻求低功耗广域网的解决方案.docx
- (源码)基于Arduino的智能设备开发模板.zip
- CAD考纲董祥国.doc
- 机器学习与数据挖掘大眼睛实验室.ppt
- 【精心整理】系统集成项目管理工程师计算题.doc
- C语言程序设计方案综合练习题.docx
- 信息技术在电子商务中的运用.doc
- 行动导向教学法在中职计算机基础教学中的有效运用.docx
- 《微机原理与接口技术》在线测试题.doc


信息提交成功