package com.izouma.nineth.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Table(indexes = {@Index(columnList = "category")})
@Builder
public class Recommend extends BaseEntity {

    @ApiModelProperty("藏品ID")
    private Long collectionId;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("排序")
    private int sort;

    @ApiModelProperty("类型")
    private String type;

    private String pic;

    /*藏品，新闻*/
    @ApiModelProperty("种类")
    private String category;
}
