package com.izouma.wenlvju.domain.regulation;

import com.izouma.wenlvju.converter.StringArrayConverter;
import com.izouma.wenlvju.domain.BaseEntity;
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.Convert;
import javax.persistence.Entity;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Where(clause = "del = 0")
@ApiModel(value = "备案检查")
public class RecordCheck extends BaseEntity {
    private Long recordId;

    @Column(columnDefinition = "TEXT")
    private String content;

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

    private Long userId;
}
