package com.izouma.dingdong.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Where(clause = "enabled = 1")
@ApiModel(value = "快捷评价", description = "快捷评价")
public class FastAppraisal implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @ApiModelProperty(value = "内容", name = "content")
    private String content;

    /**
     * 1-非常差，2-一般，3-超赞
     */
    @ApiModelProperty(value = "评价类型", name = "type")
    private Integer type;

    private Boolean enabled = true;
}
