mall电商项目建数据库的sql

因为在家闲着无聊,也没有面试邀请,就让大佬给我推荐了个电商项目去做,也是从头锻炼一下自己,不要得过且过,原作者的Github地址我会放到
下面,这个是建库语句,方便大家审阅,也方便自己按照表结构来做需求

商品分类表

create table pms_product_category
(
   id                   bigint not null auto_increment,
   parent_id            bigint comment '上级分类的编号:0表示一级分类',
   name                 varchar(64) comment '名称',
   level                int(1) comment '分类级别:0->1级;1->2级',
   product_count        int comment '商品数量',
   product_unit         varchar(64) comment '商品单位',
   nav_status           int(1) comment '是否显示在导航栏:0->不显示;1->显示',
   show_status          int(1) comment '显示状态:0->不显示;1->显示',
   sort                 int comment '排序',
   icon                 varchar(255) comment '图标',
   keywords             varchar(255) comment '关键字',
   description          text comment '描述',
   primary key (id)
);

商品品牌表

create table pms_brand
(
   id                   bigint not null auto_increment,
   name                 varchar(64) comment '名称',
   first_letter         varchar(8) comment '首字母',
   sort                 int comment '排序',
   factory_status       int(1) comment '是否为品牌制造商:0->不是;1->是',
   show_status          int(1) comment '是否显示',
   product_count        int comment '产品数量',
   product_comment_count int comment '产品评论数量',
   logo                 varchar(255) comment '品牌logo',
   big_pic              varchar(255) comment '专区大图',
   brand_story          text comment '品牌故事',
   primary key (id)
);

商品属性分类表

create table pms_product_attribute_category
(
   id                   bigint not null auto_increment,
   name                 varchar(64) comment '名称',
   attribute_count      int comment '属性数量',
   param_count          int comment '参数数量',
   primary key (id)
);

商品属性表

create table pms_product_attribute
(
   id                   bigint not null auto_increment,
   product_attribute_category_id bigint comment '商品属性分类id',
   name                 varchar(64) comment '名称',
   select_type          int(1) comment '属性选择类型:0->唯一;1->单选;2->多选;对应属性和参数意义不同;',
   input_type           int(1) comment '属性录入方式:0->手工录入;1->从列表中选取',
   input_list           varchar(255) comment '可选值列表,以逗号隔开',
   sort                 int comment '排序字段:最高的可以单独上传图片',
   filter_type          int(1) comment '分类筛选样式:1->普通;1->颜色',
   search_type          int(1) comment '检索类型;0->不需要进行检索;1->关键字检索;2->范围检索',
   related_status       int(1) comment '相同属性产品是否关联;0->不关联;1->关联',
   hand_add_status      int(1) comment '是否支持手动新增;0->不支持;1->支持',
   type                 int(1) comment '属性的类型;0->规格;1->参数',
   primary key (id)
);

商品属性值表

create table pms_product_attribute_value
(
   id                   bigint not null auto_increment,
   product_id           bigint comment '商品id',
   product_attribute_id bigint comment '商品属性id',
   value                varchar(64) comment '手动添加规格或参数的值,参数单值,规格有多个时以逗号隔开',
   primary key (id)
);

商品分类和属性的关系表

create table pms_product_category_attribute_relation
(
   id                   bigint not null auto_increment,
   product_category_id  bigint comment '商品分类id',
   product_attribute_id bigint comment '商品属性id',
   primary key (id)
);

商品表

create table pms_product
(
   id                   bigint not null auto_increment,
   brand_id             bigint comment '品牌id',
   product_category_id  bigint comment '品牌分类id',
   feight_template_id   bigint comment '运费模版id',
   product_attribute_category_id bigint comment '品牌属性分类id',
   name                 varchar(64) not null comment '商品名称',
   pic                  varchar(255) comment '图片',
   product_sn           varchar(64) not null comment '货号',
   delete_status        int(1) comment '删除状态:0->未删除;1->已删除',
   publish_status       int(1) comment '上架状态:0->下架;1->上架',
   new_status           int(1) comment '新品状态:0->不是新品;1->新品',
   recommand_status     int(1) comment '推荐状态;0->不推荐;1->推荐',
   verify_status        int(1) comment '审核状态:0->未审核;1->审核通过',
   sort                 int comment '排序',
   sale                 int comment '销量',
   price                decimal(10,2) comment '价格',
   promotion_price      decimal(10,2) comment '促销价格',
   gift_growth          int default 0 comment '赠送的成长值',
   gift_point           int default 0 comment '赠送的积分',
   use_point_limit      int comment '限制使用的积分数',
   sub_title            varchar(255) comment '副标题',
   description          text comment '商品描述',
   original_price       decimal(10,2) comment '市场价',
   stock                int comment '库存',
   low_stock            int comment '库存预警值',
   unit                 varchar(16) comment '单位',
   weight               decimal(10,2) comment '商品重量,默认为克',
   preview_status       int(1) comment '是否为预告商品:0->不是;1->是',
   service_ids          varchar(64) comment '以逗号分割的产品服务:1->无忧退货;2->快速退款;3->免费包邮',
   keywords             varchar(255) comment '关键字',
   note                 varchar(255) comment '备注',
   album_pics           varchar(255) comment '画册图片,连产品图片限制为5张,以逗号分割',
   detail_title         varchar(255) comment '详情标题',
   detail_desc          text comment 
  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
电商系统项目进度及人员安排管理是确保项目按时交付的关键方面。以下是对这一问题的回答。 首先,项目进度管理是通过制定详细的项目计划和时间表来监控和管理项目进展。我们会针对Mall电商系统项目制定一个明确的工作计划,包含各个阶段的任务、里程碑和交付日期。每个任务都会有对应的负责人,负责监督并确保任务按时完成。我们还会定期召开项目会议,评估项目进展,并及时调整计划以应对任何延迟或风险。 其次,人员安排管理是确定项目所需的人员和他们的角色。我们会根据Mall电商系统项目的需求,确定不同的职能团队,例如项目经理、开发人员、设计师和测试人员等。每个团队成员都会有明确的职责和工作分配。我们会进行适当的资源分配,确保团队有足够的人力和技能来完成项目。 此外,我们还会实施有效的沟通和协调机制,确保团队成员之间的合作和信息共享。团队之间的沟通可以通过例会、进度报告和电子沟通工具来实现。我们会立一个良好的信息共享平台,以便团队成员可以随时查看项目的进展,并及时解决任何问题。 最后,我们会定期评估项目的进展并进行风险管理。如果项目进展存在延误或风险,我们会及时采取措施,例如调整资源、重新安排任务或加强沟通,以确保项目能够按时交付。 综上所述,mall电商系统项目进度及人员安排管理是一个综合性的任务。通过制定明确的计划、分配合适的人力资源、立有效的沟通渠道以及对项目进行评估和风险管理,我们可以确保项目按时交付,并实现项目的成功实施。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值