记得上下班打卡 | git大法好,push需谨慎

Commit eff76e86 authored by 张国柄's avatar 张国柄

~structure<>entity;

parent 2d740370
......@@ -20,8 +20,8 @@ public class GoblinGoodsCategorySpec implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@TableId(value = "mid", type = IdType.AUTO)
private Long mid;
/**
* 分类id,对应 goblin_self_goods_category.cate_id
......@@ -38,5 +38,7 @@ public class GoblinGoodsCategorySpec implements Serializable {
*/
private String delFlg;
private String comment;
}
......@@ -38,5 +38,7 @@ public class GoblinGoodsImage implements Serializable {
*/
private String delFlg;
private String comment;
}
......@@ -73,7 +73,7 @@ public class GoblinGoodsSku implements Serializable {
private BigDecimal price;
/**
* 会员价格
* 单品会员价格
*/
private BigDecimal priceMember;
......
......@@ -20,8 +20,8 @@ public class GoblinGoodsSkuSpecValue implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@TableId(value = "mid", type = IdType.AUTO)
private Long mid;
/**
* 商品id,对应 goblin_goods.spu_id
......@@ -43,15 +43,12 @@ public class GoblinGoodsSkuSpecValue implements Serializable {
*/
private String specVid;
/**
* 规格值
*/
private String valueRemark;
/**
* 删除标记[0-未删除|1-删除]
*/
private String delFlg;
private String comment;
}
......@@ -21,8 +21,8 @@ public class GoblinGoodsSpec implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@TableId(value = "mid", type = IdType.AUTO)
private Long mid;
/**
* 规格id
......
......@@ -2,6 +2,9 @@ package com.liquidnet.service.goblin.entity;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
......@@ -19,7 +22,8 @@ public class GoblinGoodsSpecValue implements Serializable {
private static final long serialVersionUID = 1L;
private String id;
@TableId(value = "mid", type = IdType.AUTO)
private Long mid;
/**
* 规格id,对应 goblin_goods_spec.spec_id
......
......@@ -20,8 +20,8 @@ public class GoblinGoodsSpuSpecValue implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@TableId(value = "mid", type = IdType.AUTO)
private Long mid;
/**
* 商品id,对应 goblin_goods.spu_id
......@@ -38,15 +38,12 @@ public class GoblinGoodsSpuSpecValue implements Serializable {
*/
private String specVid;
/**
* 规格值
*/
private String valueRemark;
/**
* 删除标记[0-未删除|1-删除]
*/
private String delFlg;
private String comment;
}
......@@ -30,7 +30,7 @@ public class GoblinServiceSupport implements Serializable {
private String ssid;
/**
* 服务支持名称
* 服务支持名称
*/
private String name;
......
......@@ -74,7 +74,6 @@ create table goblin_self_goods_category
create unique index uidx_gsgc_cate_id on goblin_self_goods_category (cate_id);
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
drop table if exists goblin_store_info;
create table goblin_store_info
(
......@@ -189,7 +188,6 @@ create table goblin_store_goods_category
create index idx_gsgc_store_id on goblin_store_goods_category (store_id);
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
drop table if exists goblin_goods_service_support;
create table goblin_goods_service_support
(
......@@ -223,7 +221,8 @@ create table goblin_goods_image
mid bigint auto_increment primary key,
spu_id varchar(64) not null comment '商品id',
url varchar(256) not null comment '图片地址',
del_flg char default '0' comment '删除标记[0-未删除|1-删除]'
del_flg char default '0' comment '删除标记[0-未删除|1-删除]',
comment varchar(255)
) engine = InnoDB comment '商品图片';
create index idx_ggi_spu_id on goblin_goods_image (spu_id);
......@@ -323,13 +322,12 @@ create index idx_ggs_spu_id on goblin_goods_sku (spu_id);
drop table if exists goblin_goods_spu_spec_value;
create table goblin_goods_spu_spec_value
(
id bigint auto_increment primary key,
spu_id varchar(64) not null comment '商品id,对应 goblin_goods.spu_id',
spec_id varchar(30) not null comment '规格id,对应 goblin_goods_spec.spec_id',
spec_vid varchar(30) not null comment '规格值id,对应 goblin_goods_spec_value.spec_vid',
# url varchar(256) null comment '规格值的图片地址',
value_remark varchar(100) not null comment '规格值',
del_flg char default '0' comment '删除标记[0-未删除|1-删除]'
mid bigint auto_increment primary key,
spu_id varchar(64) not null comment '商品id,对应 goblin_goods.spu_id',
spec_id varchar(30) not null comment '规格id,对应 goblin_goods_spec.spec_id',
spec_vid varchar(30) not null comment '规格值id,对应 goblin_goods_spec_value.spec_vid',
del_flg char default '0' comment '删除标记[0-未删除|1-删除]',
comment varchar(255)
) engine = InnoDB comment '商品关联规格值';
create index idx_ggssv_spu_id on goblin_goods_spu_spec_value (spu_id);
......@@ -337,24 +335,23 @@ create index idx_ggssv_spu_id on goblin_goods_spu_spec_value (spu_id);
drop table if exists goblin_goods_sku_spec_value;
create table goblin_goods_sku_spec_value
(
id bigint auto_increment primary key,
spu_id varchar(64) not null comment '商品id,对应 goblin_goods.spu_id',
sku_id varchar(64) not null comment '单品id,对应 goblin_goods_sku.sku_id',
spec_id varchar(30) not null comment '规格id,对应 goblin_goods_spec.spec_id',
spec_vid varchar(30) not null comment '规格值id,对应 goblin_goods_spec_value.spec_vid',
value_remark varchar(100) not null comment '规格值',
del_flg char default '0' comment '删除标记[0-未删除|1-删除]'
mid bigint auto_increment primary key,
spu_id varchar(64) not null comment '商品id,对应 goblin_goods.spu_id',
sku_id varchar(64) not null comment '单品id,对应 goblin_goods_sku.sku_id',
spec_id varchar(30) not null comment '规格id,对应 goblin_goods_spec.spec_id',
spec_vid varchar(30) not null comment '规格值id,对应 goblin_goods_spec_value.spec_vid',
del_flg char default '0' comment '删除标记[0-未删除|1-删除]',
comment varchar(255)
) engine = InnoDB comment '单品关联规格值';
create index idx_ggssv_sku_id on goblin_goods_sku_spec_value (sku_id);
create index idx_ggssv_spec_id on goblin_goods_sku_spec_value (spec_id);
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
drop table if exists goblin_goods_spec_value;
create table goblin_goods_spec_value
(
id varchar(64) not null primary key,
mid bigint auto_increment primary key,
spec_id varchar(30) not null comment '规格id,对应 goblin_goods_spec.spec_id',
spec_vid varchar(30) not null comment '规格值id',
spec_vname varchar(128) not null comment '规格值的名称',
......@@ -374,7 +371,7 @@ create index idx_ggsv_spec_vid on goblin_goods_spec_value (spec_vid);
drop table if exists goblin_goods_spec;
create table goblin_goods_spec
(
id bigint auto_increment primary key,
mid bigint auto_increment primary key,
spec_id varchar(30) not null comment '规格id',
spec_name varchar(45) not null comment '规格名称',
spec_alias varchar(45) null comment '规格别名',
......@@ -394,14 +391,16 @@ create unique index uidx_ggs_spec_id on goblin_goods_spec (spec_id);
drop table if exists goblin_goods_category_spec;
create table goblin_goods_category_spec
(
id bigint auto_increment primary key,
mid bigint auto_increment primary key,
cate_id varchar(30) not null comment '分类id,对应 goblin_self_goods_category.cate_id',
spec_id varchar(30) not null comment '规格id,对应 goblin_goods_spec.spec_id',
del_flg char default '0' comment '删除标记[0-未删除|1-删除'
del_flg char default '0' comment '删除标记[0-未删除|1-删除',
comment varchar(255)
) engine = InnoDB comment '分类关联规格';
create index idx_ggcs_cate_id on goblin_goods_category_spec (cate_id);
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
DROP TABLE IF EXISTS `goblin_front_banner`;
CREATE TABLE `goblin_front_banner`
......@@ -424,14 +423,6 @@ CREATE TABLE `goblin_front_banner`
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci COMMENT ='轮播图';
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
# -- >>------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment