This commit is contained in:
@@ -1,58 +0,0 @@
|
||||
package com.example.building.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 种类属性定义实体
|
||||
*/
|
||||
@Data
|
||||
@TableName("category_attributes")
|
||||
public class CategoryAttribute {
|
||||
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String attrId;
|
||||
|
||||
/**
|
||||
* 种类ID
|
||||
*/
|
||||
private String categoryId;
|
||||
|
||||
/**
|
||||
* 属性名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 属性类型: number=数字, text=文本, formula=公式
|
||||
*/
|
||||
private String attrType;
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
private String unit;
|
||||
|
||||
/**
|
||||
* 公式表达式(如:length*width)
|
||||
*/
|
||||
private String formula;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sortOrder;
|
||||
|
||||
/**
|
||||
* 是否必填
|
||||
*/
|
||||
private Integer required;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private LocalDateTime updatedAt;
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
package com.example.building.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 商品属性值实体
|
||||
*/
|
||||
@Data
|
||||
@TableName("product_attributes")
|
||||
public class ProductAttribute {
|
||||
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 商品ID
|
||||
*/
|
||||
private String productId;
|
||||
|
||||
/**
|
||||
* 属性定义ID
|
||||
*/
|
||||
private String attrId;
|
||||
|
||||
/**
|
||||
* 属性名称(冗余)
|
||||
*/
|
||||
private String attrName;
|
||||
|
||||
/**
|
||||
* 属性值
|
||||
*/
|
||||
private String attrValue;
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime createdAt;
|
||||
}
|
||||
Reference in New Issue
Block a user