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

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

~goblin:nft.sql;

~goblin:nft.entity;
parent 7c02bbe6
package com.liquidnet.service.goblin.dto.vo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@ApiModel(value = "GoblinDigitalArtworkCertVo", description = "藏品证书信息")
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GoblinDigitalArtworkCertVo implements Serializable, Cloneable {
private static final long serialVersionUID = -5348463844779743371L;
@ApiModelProperty(position = 11, value = "藏品名称")
private String name;
@ApiModelProperty(position = 12, value = "创作者")
private String author;
@ApiModelProperty(position = 13, value = "发行方")
private String publisher;
@ApiModelProperty(position = 14, value = "收藏者")
private String collector;
@ApiModelProperty(position = 15, value = "藏品简介")
private String intro;
// 流转记录
private static final GoblinDigitalArtworkCertVo obj = new GoblinDigitalArtworkCertVo();
public static GoblinDigitalArtworkCertVo getNew() {
try {
return (GoblinDigitalArtworkCertVo) obj.clone();
} catch (CloneNotSupportedException e) {
return new GoblinDigitalArtworkCertVo();
}
}
}
package com.liquidnet.service.goblin.dto.vo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@ApiModel(value = "GoblinDigitalArtworkInfoVo", description = "藏品详情信息")
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GoblinDigitalArtworkInfoVo implements Serializable, Cloneable {
private static final long serialVersionUID = 8903534983251413696L;
@ApiModelProperty(position = 11, value = "是否盲盒[0-否|1-是]")
private Integer unbox;
@ApiModelProperty(position = 12, value = "藏品名称")
private String name;
@ApiModelProperty(position = 13, value = "藏品素材类型[1-图片|2-视频|3-模型]")
private Integer materialType;
@ApiModelProperty(position = 14, value = "藏品素材URL")
private String materialUrl;
@ApiModelProperty(position = 15, value = "序列号")
private Integer editionSn;
@ApiModelProperty(position = 16, value = "藏品发行量")
private Integer edition;
@ApiModelProperty(position = 17, value = "NFT藏品HASH")
private String nftHash;
@ApiModelProperty(position = 18, value = "NFT系列声明时间")
private String declareAt;
@ApiModelProperty(position = 19, value = "获得方式[0-购买|1-兑换]")
private Integer getway;
@ApiModelProperty(position = 20, value = "藏品状态,根据`unbox`区分盲盒来判断[0-生成中/未开启|1-已生成/已开启|2-生成失败/开启失败]")
private Integer state;
@ApiModelProperty(position = 21, value = "创作者")
private String author;
@ApiModelProperty(position = 22, value = "收藏者")
private String collector;
@ApiModelProperty(position = 23, value = "发行方")
private String publisher;
private static final GoblinDigitalArtworkInfoVo obj = new GoblinDigitalArtworkInfoVo();
public static GoblinDigitalArtworkInfoVo getNew() {
try {
return (GoblinDigitalArtworkInfoVo) obj.clone();
} catch (CloneNotSupportedException e) {
return new GoblinDigitalArtworkInfoVo();
}
}
}
package com.liquidnet.service.goblin.dto.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.liquidnet.commons.lang.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
@ApiModel(value = "GoblinDigitalArtworkListVo", description = "藏品列表信息")
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GoblinDigitalArtworkListVo implements Serializable, Cloneable {
private static final long serialVersionUID = -1510553574954846520L;
@ApiModelProperty(position = 10, value = "是否盲盒[0-否|1-是]")
private Integer unbox;
@ApiModelProperty(position = 11, value = "藏品Id")
private String artworkId;
@ApiModelProperty(position = 12, value = "藏品名称")
private String name;
@ApiModelProperty(position = 13, value = "藏品封面")
private String coverPic;
@ApiModelProperty(position = 14, value = "序列号")
private Integer editionSn;
@ApiModelProperty(position = 15, value = "藏品发行量")
private Integer edition;
@ApiModelProperty(position = 16, value = "获得方式[0-购买|1-兑换]")
private Integer getway;
@ApiModelProperty(position = 17, value = "藏品状态,根据`unbox`区分盲盒来判断[0-生成中/未开启|1-已生成/已开启|2-生成失败/开启失败]")
private Integer state;
@ApiModelProperty(position = 18, value = "盲盒开启时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtil.DATE_FULL_STR)
private LocalDateTime openingTime;
private static final GoblinDigitalArtworkListVo obj = new GoblinDigitalArtworkListVo();
public static GoblinDigitalArtworkListVo getNew() {
try {
return (GoblinDigitalArtworkListVo) obj.clone();
} catch (CloneNotSupportedException e) {
return new GoblinDigitalArtworkListVo();
}
}
}
package com.liquidnet.service.goblin.dto.vo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GoblinDigitalArtworkVo implements Serializable, Cloneable {
private static final long serialVersionUID = -5920952408993245963L;
private String artworkId;
private String orderId;
private String uid;
private String skuId;
private Integer editionSn;
private String nftId;
private String releaseTxhash;
private String releaseAt;
private String tradingTxhash;
private String tradingAt;
private Integer getway;
private Integer state;
private String delFlg;
private LocalDateTime openingAt;
private LocalDateTime createdAt;
private LocalDateTime updatedAt;
private LocalDateTime deletedAt;
/* ---------------------- 冗余SPU信息 ---------------------- */
private String author;
private String publisher;
private static final GoblinDigitalArtworkVo obj = new GoblinDigitalArtworkVo();
public static GoblinDigitalArtworkVo getNew() {
try {
return (GoblinDigitalArtworkVo) obj.clone();
} catch (CloneNotSupportedException e) {
return new GoblinDigitalArtworkVo();
}
}
}
...@@ -27,6 +27,8 @@ public class GoblinGoodsInfoVo implements Serializable, Cloneable { ...@@ -27,6 +27,8 @@ public class GoblinGoodsInfoVo implements Serializable, Cloneable {
private String spuId; private String spuId;
@ApiModelProperty(position = 12, value = "商品编码[默认为系统编码,也可手动输入商家自己的编码]") @ApiModelProperty(position = 12, value = "商品编码[默认为系统编码,也可手动输入商家自己的编码]")
private String spuNo; private String spuNo;
@ApiModelProperty(position = 12, value = "商品类型[0-常规|1-数字藏品]")
private Integer spuType;
@ApiModelProperty(position = 13, value = "商品名称[100]") @ApiModelProperty(position = 13, value = "商品名称[100]")
private String name; private String name;
@ApiModelProperty(position = 14, value = "商品副标题[128]") @ApiModelProperty(position = 14, value = "商品副标题[128]")
...@@ -41,6 +43,8 @@ public class GoblinGoodsInfoVo implements Serializable, Cloneable { ...@@ -41,6 +43,8 @@ public class GoblinGoodsInfoVo implements Serializable, Cloneable {
private String intro; private String intro;
@ApiModelProperty(position = 19, value = "商品详情", example = "商品详情...") @ApiModelProperty(position = 19, value = "商品详情", example = "商品详情...")
private String details; private String details;
@ApiModelProperty(position = 19, value = "注意事项", example = "注意事项...")
private String attention;
@ApiModelProperty(position = 20, value = "封面图片地址[256]") @ApiModelProperty(position = 20, value = "封面图片地址[256]")
private String coverPic; private String coverPic;
@ApiModelProperty(position = 21, value = "商品视频地址") @ApiModelProperty(position = 21, value = "商品视频地址")
...@@ -66,6 +70,12 @@ public class GoblinGoodsInfoVo implements Serializable, Cloneable { ...@@ -66,6 +70,12 @@ public class GoblinGoodsInfoVo implements Serializable, Cloneable {
private String shelvesHandle; private String shelvesHandle;
@ApiModelProperty(position = 31, value = "预约上架时间[上架处理方式为3-预约定时上架时需要指定]") @ApiModelProperty(position = 31, value = "预约上架时间[上架处理方式为3-预约定时上架时需要指定]")
private String shelvesTime; private String shelvesTime;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtil.DATE_FULL_STR)
@ApiModelProperty(position = 31, value = "开售时间")
private LocalDateTime saleStartAt;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtil.DATE_FULL_STR)
@ApiModelProperty(position = 31, value = "停售时间")
private LocalDateTime saleStopAt;
@ApiModelProperty(position = 32, value = "商品有效期[YYYY-MM-DD]") @ApiModelProperty(position = 32, value = "商品有效期[YYYY-MM-DD]")
private String spuValidity; private String spuValidity;
@ApiModelProperty(position = 33, value = "是否虚拟商品[0-否|1-是]") @ApiModelProperty(position = 33, value = "是否虚拟商品[0-否|1-是]")
...@@ -78,6 +88,10 @@ public class GoblinGoodsInfoVo implements Serializable, Cloneable { ...@@ -78,6 +88,10 @@ public class GoblinGoodsInfoVo implements Serializable, Cloneable {
private String shelvesStatus; private String shelvesStatus;
@ApiModelProperty(position = 37, value = "自定义展示[0-默认展示|1-隐藏不可购买]") @ApiModelProperty(position = 37, value = "自定义展示[0-默认展示|1-隐藏不可购买]")
private String spuAppear; private String spuAppear;
@ApiModelProperty(position = 37, value = "创作者")
private String author;
@ApiModelProperty(position = 37, value = "发行方")
private String publisher;
@ApiModelProperty(position = 38, value = "删除标记[0-未删除|1-删除]") @ApiModelProperty(position = 38, value = "删除标记[0-未删除|1-删除]")
private String delFlg; private String delFlg;
@ApiModelProperty(position = 39, value = "上架时间") @ApiModelProperty(position = 39, value = "上架时间")
......
...@@ -25,18 +25,26 @@ public class GoblinGoodsSkuInfoVo implements Serializable, Cloneable { ...@@ -25,18 +25,26 @@ public class GoblinGoodsSkuInfoVo implements Serializable, Cloneable {
private String spuId; private String spuId;
@ApiModelProperty(position = 12, value = "单品的编号[45]") @ApiModelProperty(position = 12, value = "单品的编号[45]")
private String skuNo; private String skuNo;
@ApiModelProperty(position = 12, value = "商品类型[0-常规|1-数字藏品]")
private int skuType;
@ApiModelProperty(position = 13, value = "单品的名称[100]") @ApiModelProperty(position = 13, value = "单品的名称[100]")
private String name; private String name;
@ApiModelProperty(position = 14, value = "单品的副标题[128]") @ApiModelProperty(position = 14, value = "单品的副标题[128]")
private String subtitle; private String subtitle;
@ApiModelProperty(position = 15, value = "单品默认图片的URL[256]") @ApiModelProperty(position = 15, value = "单品默认图片的URL[256]")
private String skuPic; private String skuPic;
@ApiModelProperty(position = 15, value = "单品详情展示文件URL[256]")
private String skuWatch;
@ApiModelProperty(position = 15, value = "展示文件类型[1-图片|2-视频|3-模型]")
private Integer watchType;
@ApiModelProperty(position = 16, value = "ISBN,针对CD/图书等[50]") @ApiModelProperty(position = 16, value = "ISBN,针对CD/图书等[50]")
private String skuIsbn; private String skuIsbn;
@ApiModelProperty(position = 17, value = "总库存") @ApiModelProperty(position = 17, value = "总库存")
private Integer stock; private Integer stock;
@ApiModelProperty(position = 18, value = "单品库存") @ApiModelProperty(position = 18, value = "单品库存")
private Integer skuStock; private Integer skuStock;
@ApiModelProperty(position = 18, value = "兑换库存")
private Integer giftStock;
@ApiModelProperty(position = 19, value = "预警库存") @ApiModelProperty(position = 19, value = "预警库存")
private Integer warningStock; private Integer warningStock;
@ApiModelProperty(position = 20, value = "单品销售价-原价[20,2]") @ApiModelProperty(position = 20, value = "单品销售价-原价[20,2]")
...@@ -47,6 +55,10 @@ public class GoblinGoodsSkuInfoVo implements Serializable, Cloneable { ...@@ -47,6 +55,10 @@ public class GoblinGoodsSkuInfoVo implements Serializable, Cloneable {
private BigDecimal priceMember; private BigDecimal priceMember;
@ApiModelProperty(position = 23, value = "单品的重量[20,2]") @ApiModelProperty(position = 23, value = "单品的重量[20,2]")
private BigDecimal weight; private BigDecimal weight;
@ApiModelProperty(position = 23, value = "单品简介[256]", example = "单品简介...")
private String intro;
@ApiModelProperty(position = 23, value = "单品详情", example = "单品详情...")
private String details;
@ApiModelProperty(position = 24, value = "购买限制[0-全部用户|1-仅会员|2-指定用户]") @ApiModelProperty(position = 24, value = "购买限制[0-全部用户|1-仅会员|2-指定用户]")
private String buyFactor; private String buyFactor;
@ApiModelProperty(position = 25, value = "购买限制人员名单[购买限制为2-指定用户时必填]") @ApiModelProperty(position = 25, value = "购买限制人员名单[购买限制为2-指定用户时必填]")
...@@ -55,6 +67,16 @@ public class GoblinGoodsSkuInfoVo implements Serializable, Cloneable { ...@@ -55,6 +67,16 @@ public class GoblinGoodsSkuInfoVo implements Serializable, Cloneable {
private Integer buyLimit; private Integer buyLimit;
@ApiModelProperty(position = 27, value = "商品的店铺ID,如果是平台的则为0") @ApiModelProperty(position = 27, value = "商品的店铺ID,如果是平台的则为0")
private String storeId; private String storeId;
@ApiModelProperty(position = 27, value = "上架处理方式[1-等待手动上架|2-直接上架售卖|3-预约定时上架]")
private String shelvesHandle;
@ApiModelProperty(position = 27, value = "预约上架时间[上架处理方式为3-预约定时上架时需要指定]")
private LocalDateTime shelvesTime;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtil.DATE_FULL_STR)
@ApiModelProperty(position = 27, value = "开售时间")
private LocalDateTime saleStartTime;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtil.DATE_FULL_STR)
@ApiModelProperty(position = 27, value = "停售时间")
private LocalDateTime saleStopTime;
@ApiModelProperty(position = 28, value = "单品有效期") @ApiModelProperty(position = 28, value = "单品有效期")
@JsonFormat(shape=JsonFormat.Shape.STRING, pattern= DateUtil.DATE_FULL_STR) @JsonFormat(shape=JsonFormat.Shape.STRING, pattern= DateUtil.DATE_FULL_STR)
private LocalDateTime skuValidity; private LocalDateTime skuValidity;
...@@ -68,6 +90,34 @@ public class GoblinGoodsSkuInfoVo implements Serializable, Cloneable { ...@@ -68,6 +90,34 @@ public class GoblinGoodsSkuInfoVo implements Serializable, Cloneable {
private String shelvesStatus; private String shelvesStatus;
@ApiModelProperty(position = 33, value = "自定义展示[0-默认展示|1-隐藏不可购买]") @ApiModelProperty(position = 33, value = "自定义展示[0-默认展示|1-隐藏不可购买]")
private String skuAppear; private String skuAppear;
@ApiModelProperty(position = 33, value = "素材原始文件类型[1-图片|2-视频|3-模型]")
private Integer materialType;
@ApiModelProperty(position = 33, value = "素材原始文件URL")
private String materialUrl;
@ApiModelProperty(position = 33, value = "是否盲盒[0-否|1-是]")
private Integer unbox;
@ApiModelProperty(position = 33, value = "盲盒命中率[0.01~100%]")
private BigDecimal hitRatio;
@ApiModelProperty(position = 33, value = "盲盒开启时间")
private LocalDateTime openingTime;
@ApiModelProperty(position = 33, value = "盲盒开启时限[单位秒]")
private Integer openingLimit;
@ApiModelProperty(position = 33, value = "NFT路由")
private String routeType;
@ApiModelProperty(position = 33, value = "NFT上传声明状态[0-待上传|1-已上传|2-上传失败|9-上传中]")
private Integer upchain;
@ApiModelProperty(position = 33, value = "NFT预览图访问URL")
private String displayUrl;
@ApiModelProperty(position = 33, value = "NFT素材访问URL")
private String nftUrl;
@ApiModelProperty(position = 33, value = "NFT系列ID")
private String seriesId;
@ApiModelProperty(position = 33, value = "NFT系列HASH")
private String seriesHash;
@ApiModelProperty(position = 33, value = "NFT藏品HASH")
private String nftHash;
@ApiModelProperty(position = 33, value = "NFT系列声明时间")
private String declareAt;
@ApiModelProperty(position = 34, value = "删除标记[0-未删除|1-删除]") @ApiModelProperty(position = 34, value = "删除标记[0-未删除|1-删除]")
private String delFlg; private String delFlg;
@ApiModelProperty(position = 35, value = "上架时间") @ApiModelProperty(position = 35, value = "上架时间")
...@@ -90,6 +140,8 @@ public class GoblinGoodsSkuInfoVo implements Serializable, Cloneable { ...@@ -90,6 +140,8 @@ public class GoblinGoodsSkuInfoVo implements Serializable, Cloneable {
@ApiModelProperty(position = 40, value = "单品规格信息") @ApiModelProperty(position = 40, value = "单品规格信息")
private List<GoblinGoodsSpecDto> skuSpecList; private List<GoblinGoodsSpecDto> skuSpecList;
@ApiModelProperty(position = 54, value = "单品音乐人标签[藏品类型时使用]")
private List<GoblinGoodsExtagVo> extagVoList;
/* -------------------------------- 只展示,不存储 -------------------------------- */ /* -------------------------------- 只展示,不存储 -------------------------------- */
......
...@@ -24,6 +24,11 @@ public class GoblinDigitalArtwork implements Serializable { ...@@ -24,6 +24,11 @@ public class GoblinDigitalArtwork implements Serializable {
@TableId(value = "mid", type = IdType.AUTO) @TableId(value = "mid", type = IdType.AUTO)
private Long mid; private Long mid;
/**
* 藏品ID
*/
private String artworkId;
/** /**
* 藏品订单号 * 藏品订单号
*/ */
...@@ -40,40 +45,60 @@ public class GoblinDigitalArtwork implements Serializable { ...@@ -40,40 +45,60 @@ public class GoblinDigitalArtwork implements Serializable {
private String skuId; private String skuId;
/** /**
* 盲盒开启时间 * 序列号
*/ */
private LocalDateTime openingAt; private Integer editionSn;
/** /**
* 藏品状态[0-生成中/未开启|1-已生成/已开启|2-生成失败/开启失败] * 藏品ID
*/ */
private String state; private String nftId;
/** /**
* 序列号 * 藏品HASH
*/ */
private Integer editionSn; private String nftHash;
/** /**
* 发行标识 * 发行HASH
*/ */
private String nftId; private String releaseTxhash;
/** /**
* 发行时间 * 发行时间
*/ */
private LocalDateTime releaseAt; private String releaseAt;
/**
* 交易HASH
*/
private String tradingTxhash;
/** /**
* 交易时间 * 交易时间
*/ */
private LocalDateTime tradingAt; private String tradingAt;
/**
* 获得方式[0-购买|1-兑换]
*/
private Integer getway;
/**
* 藏品状态[0-生成中/未开启|1-已生成/已开启|2-生成失败/开启失败]
*/
private Integer state;
/** /**
* 删除标记[0-未删除|1-删除] * 删除标记[0-未删除|1-删除]
*/ */
private String delFlg; private String delFlg;
/**
* 盲盒开启时间
*/
private LocalDateTime openingAt;
private LocalDateTime createdAt; private LocalDateTime createdAt;
private LocalDateTime updatedAt; private LocalDateTime updatedAt;
......
...@@ -148,12 +148,12 @@ public class GoblinGoods implements Serializable { ...@@ -148,12 +148,12 @@ public class GoblinGoods implements Serializable {
/** /**
* 开售时间 * 开售时间
*/ */
private LocalDateTime saleStartAt; private LocalDateTime saleStartTime;
/** /**
* 停售时间 * 停售时间
*/ */
private LocalDateTime saleStopAt; private LocalDateTime saleStopTime;
/** /**
* 商品有效期[YYYY-MM-DD] * 商品有效期[YYYY-MM-DD]
......
...@@ -47,16 +47,6 @@ public class GoblinGoodsSku implements Serializable { ...@@ -47,16 +47,6 @@ public class GoblinGoodsSku implements Serializable {
*/ */
private String subtitle; private String subtitle;
/**
* 简介
*/
private String intro;
/**
* 详情
*/
private String details;
/** /**
* 单品销售价-原价 * 单品销售价-原价
*/ */
...@@ -68,19 +58,19 @@ public class GoblinGoodsSku implements Serializable { ...@@ -68,19 +58,19 @@ public class GoblinGoodsSku implements Serializable {
private String skuPic; private String skuPic;
/** /**
* ISBN,针对CD/图书等 * 展示文件URL
*/ */
private String skuIsbn; private String skuWatch;
/** /**
* 展示文件URL * 展示文件类型[1-图片|2-视频|3-模型]
*/ */
private String skuWatch; private Integer watchType;
/** /**
* 素材原始文件URL * ISBN,针对CD/图书等
*/ */
private String materialOriginalUrl; private String skuIsbn;
/** /**
* 总库存 * 总库存
...@@ -117,6 +107,16 @@ public class GoblinGoodsSku implements Serializable { ...@@ -117,6 +107,16 @@ public class GoblinGoodsSku implements Serializable {
*/ */
private BigDecimal weight; private BigDecimal weight;
/**
* 简介
*/
private String intro;
/**
* 详情
*/
private String details;
/** /**
* 购买限制[0-全部用户|1-仅会员|2-指定用户] * 购买限制[0-全部用户|1-仅会员|2-指定用户]
*/ */
...@@ -150,12 +150,12 @@ public class GoblinGoodsSku implements Serializable { ...@@ -150,12 +150,12 @@ public class GoblinGoodsSku implements Serializable {
/** /**
* 开售时间 * 开售时间
*/ */
private LocalDateTime saleStartAt; private LocalDateTime saleStartTime;
/** /**
* 停售时间 * 停售时间
*/ */
private LocalDateTime saleStopAt; private LocalDateTime saleStopTime;
/** /**
* 单品有效期 * 单品有效期
...@@ -187,15 +187,25 @@ public class GoblinGoodsSku implements Serializable { ...@@ -187,15 +187,25 @@ public class GoblinGoodsSku implements Serializable {
*/ */
private String skuAppear; private String skuAppear;
/**
* 素材原始文件类型[1-图片|2-视频|3-模型]
*/
private Integer materialType;
/**
* 素材原始文件URL
*/
private String materialUrl;
/** /**
* 是否盲盒[0-否|1-是] * 是否盲盒[0-否|1-是]
*/ */
private Integer unbox; private Integer unbox;
/** /**
* 盲盒命中率 * 盲盒命中率[0.01~100%]
*/ */
private String hitRatio; private BigDecimal hitRatio;
/** /**
* 盲盒开启时间 * 盲盒开启时间
...@@ -232,6 +242,21 @@ public class GoblinGoodsSku implements Serializable { ...@@ -232,6 +242,21 @@ public class GoblinGoodsSku implements Serializable {
*/ */
private String seriesId; private String seriesId;
/**
* NFT系列HASH
*/
private String seriesHash;
/**
* NFT藏品HASH
*/
private String nftHash;
/**
* NFT系列声明时间
*/
private String declareAt;
/** /**
* 删除标记[0-未删除|1删除] * 删除标记[0-未删除|1删除]
*/ */
......
...@@ -4,33 +4,38 @@ alter table adam_real_name add node tinyint default 2 not null comment '认证 ...@@ -4,33 +4,38 @@ alter table adam_real_name add node tinyint default 2 not null comment '认证
alter table goblin_goods add spu_type tinyint default 0 not null comment '商品类型[0-常规|1-数字藏品]' after spu_no; alter table goblin_goods add spu_type tinyint default 0 not null comment '商品类型[0-常规|1-数字藏品]' after spu_no;
alter table goblin_goods add attention varchar(256) null comment '注意事项' after details; alter table goblin_goods add attention varchar(256) null comment '注意事项' after details;
alter table goblin_goods add sale_start_at datetime null comment '开售时间' after shelves_time; alter table goblin_goods add sale_start_time datetime null comment '开售时间' after shelves_time;
alter table goblin_goods add sale_stop_at datetime null comment '停售时间' after sale_start_at; alter table goblin_goods add sale_stop_time datetime null comment '停售时间' after sale_start_time;
alter table goblin_goods add author varchar(100) null comment '创作者' after spu_appear; alter table goblin_goods add author varchar(100) null comment '创作者' after spu_appear;
alter table goblin_goods add publisher varchar(100) null comment '发行方' after author; alter table goblin_goods add publisher varchar(100) null comment '发行方' after author;
# alter table goblin_goods add has_box tinyint default 0 null comment '存在盲盒[0-否|1-是]' after spu_appear; # alter table goblin_goods add has_box tinyint default 0 null comment '存在盲盒[0-否|1-是]' after spu_appear;
alter table goblin_goods_sku add sku_type tinyint default 0 not null comment '商品类型[0-常规|1-数字藏品]' after sku_no; alter table goblin_goods_sku add sku_type tinyint default 0 not null comment '商品类型[0-常规|1-数字藏品]' after sku_no;
alter table goblin_goods_sku add intro varchar(256) null comment '简介' after subtitle; alter table goblin_goods_sku add sku_watch varchar(256) null comment '展示文件URL' after sku_pic;
alter table goblin_goods_sku add watch_type tinyint null comment '展示文件类型[1-图片|2-视频|3-模型]' after sku_watch;
alter table goblin_goods_sku add intro varchar(256) null comment '简介' after weight;
alter table goblin_goods_sku add details text null comment '详情' after intro; alter table goblin_goods_sku add details text null comment '详情' after intro;
alter table goblin_goods_sku add sku_watch varchar(256) null comment '展示文件URL' after sku_isbn;
alter table goblin_goods_sku add material_original_url varchar(256) null comment '素材原始文件URL' after sku_watch;
alter table goblin_goods_sku add gift_stock int null comment '兑换库存' after sku_stock; alter table goblin_goods_sku add gift_stock int null comment '兑换库存' after sku_stock;
alter table goblin_goods_sku add shelves_handle char default '1' comment '上架处理方式[1-等待手动上架|2-直接上架售卖|3-预约定时上架]' after store_id; alter table goblin_goods_sku add shelves_handle char default '1' comment '上架处理方式[1-等待手动上架|2-直接上架售卖|3-预约定时上架]' after store_id;
alter table goblin_goods_sku add shelves_time datetime null comment '预约上架时间[上架处理方式为3-预约定时上架时需要指定]' after shelves_handle; alter table goblin_goods_sku add shelves_time datetime null comment '预约上架时间[上架处理方式为3-预约定时上架时需要指定]' after shelves_handle;
alter table goblin_goods_sku add sale_start_at datetime null comment '开售时间' after shelves_time; alter table goblin_goods_sku add sale_start_time datetime null comment '开售时间' after shelves_time;
alter table goblin_goods_sku add sale_stop_at datetime null comment '停售时间' after sale_start_at; alter table goblin_goods_sku add sale_stop_time datetime null comment '停售时间' after sale_start_time;
alter table goblin_goods_sku add unbox tinyint default 0 null comment '是否盲盒[0-否|1-是]' after sku_appear; alter table goblin_goods_sku add material_type tinyint null comment '素材原始文件类型[1-图片|2-视频|3-模型]' after sku_appear;
alter table goblin_goods_sku add hit_ratio varchar(10) null comment '盲盒命中率' after unbox; alter table goblin_goods_sku add material_url varchar(256) null comment '素材原始文件URL' after material_type;
alter table goblin_goods_sku add unbox tinyint default 0 null comment '是否盲盒[0-否|1-是]' after material_url;
alter table goblin_goods_sku add hit_ratio decimal(3, 2) null comment '盲盒命中率[0.01~100%]' after unbox;
alter table goblin_goods_sku add opening_time datetime null comment '盲盒开启时间' after hit_ratio; alter table goblin_goods_sku add opening_time datetime null comment '盲盒开启时间' after hit_ratio;
alter table goblin_goods_sku add opening_limit int default 0 comment '盲盒开启时限[单位秒]' after opening_time; alter table goblin_goods_sku add opening_limit int default 0 comment '盲盒开启时限[单位秒]' after opening_time;
alter table goblin_goods_sku add route_type varchar(20) null comment 'NFT路由' after opening_limit; alter table goblin_goods_sku add route_type varchar(20) null comment 'NFT路由' after opening_limit;
alter table goblin_goods_sku add upchain tinyint default 0 null comment 'NFT上传声明状态[0-待上传|1-已上传|2-上传失败|9-上传中]' after route_type; alter table goblin_goods_sku add upchain tinyint default 0 null comment 'NFT上传声明状态[0-待上传|1-已上传|2-上传失败|9-上传中]' after route_type;
alter table goblin_goods_sku add display_url varchar(256) null comment 'NFT预览图URL' after upchain; alter table goblin_goods_sku add display_url varchar(500) null comment 'NFT预览图URL' after upchain;
alter table goblin_goods_sku add material_access_url varchar(256) null comment 'NFT素材访问URL' after display_url; alter table goblin_goods_sku add nft_url varchar(500) 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 nft_url;
alter table goblin_goods_sku add series_hash varchar(256) null comment 'NFT系列HASH' after series_id;
alter table goblin_goods_sku add nft_hash varchar(25) null comment 'NFT藏品HASH' after series_hash;
alter table goblin_goods_sku add declare_at varchar(25) null comment 'NFT系列声明时间' after nft_hash;
# -- >>------------------------------------------------------------------------------------ # -- >>------------------------------------------------------------------------------------
drop table if exists goblin_goods_sku_tag; drop table if exists goblin_goods_sku_tag;
create table goblin_goods_sku_tag create table goblin_goods_sku_tag
...@@ -49,24 +54,27 @@ create unique index uidx_ggst_sku_tag on goblin_goods_sku_tag (sku_id, tag_id); ...@@ -49,24 +54,27 @@ 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
( (
mid bigint auto_increment primary key, mid bigint auto_increment primary key,
order_id varchar(64) not null comment '藏品订单号', artwork_id varchar(64) not null comment '藏品ID',
uid varchar(64) not null comment '用户UID', order_id varchar(64) not null comment '藏品订单号',
sku_id varchar(64) not null comment '单品ID', uid varchar(64) not null comment '用户UID',
sku_id varchar(64) not null comment '单品ID',
opening_at datetime null comment '盲盒开启时间', edition_sn int null comment '序列号',
state char default '0' comment '藏品状态[0-生成中/未开启|1-已生成/已开启|2-生成失败/开启失败]', nft_id varchar(256) null comment '藏品ID',
release_txhash varchar(256) null comment '发行HASH',
release_at varchar(25) null comment '发行时间',
trading_txhash varchar(256) null comment '发放HASH',
trading_at varchar(25) null comment '交易时间',
edition_sn int null comment '序列号', getway tinyint null comment '获得方式[0-购买|1-兑换]',
nft_id varchar(256) null comment '发行标识', state tinyint default 0 comment '藏品状态[0-生成中/未开启|1-已生成/已开启|2-生成失败/开启失败]',
release_at datetime null comment '发行时间',
trading_at datetime null comment '交易时间',
del_flg char default '0' comment '删除标记[0-未删除|1-删除]', del_flg char default '0' comment '删除标记[0-未删除|1-删除]',
created_at datetime not null, opening_at datetime null comment '盲盒开启时间',
updated_at datetime null, created_at datetime not null,
deleted_at datetime null, updated_at datetime null,
comment varchar(500) deleted_at datetime null,
comment varchar(500)
) engine = InnoDB comment '数字藏品信息'; ) engine = InnoDB comment '数字藏品信息';
# -- >>------------------------------------------------------------------------------------ # -- >>------------------------------------------------------------------------------------
drop table if exists goblin_goods_sku_excode; drop table if exists goblin_goods_sku_excode;
......
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