package com.izouma.nineth.domain;

import com.izouma.nineth.enums.AuctionRecordType;
import com.izouma.nineth.enums.AuctionType;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.math.BigDecimal;

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AuctionRecord extends BaseEntity {
    @ApiModelProperty("用户ID")
    private Long              userId;
    @ApiModelProperty("用户头像")
    private String            avatar;
    @ApiModelProperty("用户昵称")
    private String            user;
    @ApiModelProperty("拍卖活动ID")
    private Long              auctionId;
    @ApiModelProperty("拍卖活动")
    private String            name;
    @ApiModelProperty("拍卖活动图片")
    private String            auctionPic;
    @Enumerated(EnumType.STRING)
    @ApiModelProperty("类型")
    private AuctionRecordType type;
    @ApiModelProperty("是否竞得")
    private boolean           purchased;
    @ApiModelProperty("出价")
    private BigDecimal        bidderPrice;
    @ApiModelProperty("是否支付保证金")
    private boolean           payDeposit;
    @Enumerated(EnumType.STRING)
    @ApiModelProperty("拍卖类型")
    private AuctionType       auctionType;
//    @ApiModelProperty("收货人")
//    private String            contactName;
//    @ApiModelProperty("收货电话")
//    private String            contactPhone;
//    @ApiModelProperty("收货地址")
//    private String            address;
}
