package com.izouma.nineth.domain;

import cn.hutool.core.date.DateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("资产售卖限制")
public class AssetSellLimit extends BaseEntity{

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

    @ApiModelProperty("藏品名称")
    private String collectionName;

    @ApiModelProperty("最小价格")
    private BigDecimal minPrice;

    @ApiModelProperty("到期秒数")
    private Integer expireSeconds;

    @ApiModelProperty("到期时间")
    private LocalDateTime expireDateTime;

    @ApiModelProperty("是否允许上架")
    @Column(columnDefinition = "boolean default false")
    private Boolean allowOnShelf;


    private int projectId;


}
