package com.izouma.wenlvju.domain;

import com.izouma.wenlvju.enums.RateStatus;
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.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel("等级评定操作记录")
@Where(clause = "del = 0")
public class RateAudit extends BaseEntity {
    private Long rateId;

//    private LocalDateTime auditTime;

    private Long userId;

    @Enumerated(EnumType.STRING)
    private RateStatus status;

    @Column(columnDefinition = "TEXT")
    private String remark;
}
