package com.izouma.wenlvju.domain.regulation;

import com.izouma.wenlvju.converter.StringArrayConverter;
import com.izouma.wenlvju.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Where(clause = "del = false")
@ApiModel("备案检查细则")
public class RecordExpertAudit extends BaseEntity {

    private Long recordId;

    private String type;

    private boolean value;

    @Column(columnDefinition = "TEXT")
    @Convert(converter = StringArrayConverter.class)
    private List<String> img;

    @ApiModelProperty("检查人")
    private String supervisor;
}
