|
|
@@ -32,7 +32,16 @@ import java.util.List;
|
|
|
@Index(columnList = "assetId"),
|
|
|
@Index(columnList = "salable"),
|
|
|
@Index(columnList = "del"),
|
|
|
- @Index(columnList = "name")
|
|
|
+ @Index(columnList = "name"),
|
|
|
+ @Index(columnList = "createdAt"),
|
|
|
+ @Index(columnList = "sale"),
|
|
|
+ @Index(columnList = "sort"),
|
|
|
+ @Index(columnList = "del"),
|
|
|
+ @Index(columnList = "price"),
|
|
|
+ @Index(columnList = "likes"),
|
|
|
+ @Index(columnList = "onShelf,del,type"),
|
|
|
+ @Index(columnList = "onShelf,del,source,type"),
|
|
|
+ @Index(columnList = "onShelf,del,source,salable,type"),
|
|
|
})
|
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
|
@@ -79,6 +88,7 @@ public class Collection extends BaseEntity {
|
|
|
|
|
|
@ApiModelProperty("类型")
|
|
|
@Enumerated(EnumType.STRING)
|
|
|
+ @Column(length = 20)
|
|
|
private CollectionType type;
|
|
|
|
|
|
@Column(columnDefinition = "TEXT")
|
|
|
@@ -108,6 +118,7 @@ public class Collection extends BaseEntity {
|
|
|
|
|
|
@ApiModelProperty("来源")
|
|
|
@Enumerated(EnumType.STRING)
|
|
|
+ @Column(length = 20)
|
|
|
private CollectionSource source;
|
|
|
|
|
|
@ApiModelProperty("已售")
|