package com.izouma.nineth.domain;

import com.izouma.nineth.enums.HeatType;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Data
@Entity
@Table(name = "heat_info", indexes =
        {@Index(columnList = "userId"), @Index(columnList = "showroomId")})
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("热力值详情")
public class HeatInfo extends BaseEntity {

    private Long userId;

    private Long showroomId;

    @Enumerated(EnumType.STRING)
    private HeatType type;

    private Long orderId;

    private int value;
}
