package com.izouma.nineth.domain;

import com.izouma.nineth.enums.AssetStatus;
import com.izouma.nineth.enums.CollectionStatus;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Where(clause = "del = 0")
@Table(indexes = {
        @Index(columnList = "showroomId"),
        @Index(columnList = "collectionId")
})
@ApiModel("展厅藏品")
public class ShowCollection extends BaseEntity {

    private Long showroomId;

    private Long assetId;

    private Long collectionId;

    private String pic;

    private String name;

    private String status;

    private BigDecimal price;

    private int sort;
}
