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

Commit 111fe895 authored by 张国柄's avatar 张国柄

~goblin:nft.sql;

~goblin:nft.entity;
parent 78d17109
package com.liquidnet.service.goblin.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* <p>
* 单品关联标签
* </p>
*
* @author liquidnet
* @since 2022-03-23
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class GoblinGoodsSkuTag implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "mid", type = IdType.AUTO)
private Long mid;
/**
* 单品ID
*/
private String skuId;
/**
* 标签id,对应 goblin_self_goods_tag.tag_id | goblin_self_extag.tag_id
*/
private String tagId;
/**
* 排序[数值越小,排序越前]
*/
private Integer sort;
/**
* 标签所属[0-普通标签|1-专属标签]
*/
private String tagBelong;
/**
* 删除标记[0-未删除|1-删除]
*/
private String delFlg;
private String comment;
}
...@@ -31,6 +31,20 @@ alter table goblin_goods_sku add display_url varchar(256) null comment 'NFT预 ...@@ -31,6 +31,20 @@ alter table goblin_goods_sku add display_url varchar(256) null comment 'NFT预
alter table goblin_goods_sku add material_access_url varchar(256) null comment 'NFT素材访问URL' after display_url; alter table goblin_goods_sku add material_access_url varchar(256) null comment 'NFT素材访问URL' after display_url;
alter table goblin_goods_sku add series_id varchar(256) null comment 'NFT系列ID' after material_access_url; alter table goblin_goods_sku add series_id varchar(256) null comment 'NFT系列ID' after material_access_url;
# -- >>------------------------------------------------------------------------------------ # -- >>------------------------------------------------------------------------------------
drop table if exists goblin_goods_sku_tag;
create table goblin_goods_sku_tag
(
mid bigint auto_increment primary key,
sku_id varchar(64) not null comment '商品id',
tag_id varchar(30) not null comment '标签id,对应 goblin_self_tag.tag_id',
sort int default 0 comment '排序[数值越小,排序越前]',
tag_belong char default '0' comment '标签所属[0-普通标签|1-专属标签]',
del_flg char default '0' comment '删除标记[0-未删除|1-删除]',
comment varchar(255)
) engine = InnoDB comment '商品关联标签';
create unique index uidx_ggst_sku_tag on goblin_goods_sku_tag (sku_id, tag_id);
# -- >>------------------------------------------------------------------------------------
drop table if exists goblin_digital_artwork; drop table if exists goblin_digital_artwork;
create table goblin_digital_artwork create table goblin_digital_artwork
( (
......
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