package com.cirle.scientific.po;/*
 *24901
 *2023/1/11
 *14:28
 */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.time.LocalDateTime;

/**
 * @author 24901
 */
@Entity
@Table(name = "qkj_supervise_result_app")
@Data
@ApiModel
@EntityListeners(AuditingEntityListener.class)
public class QkjSuperviseResultApp {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "督导标准内容id")
    private Long id;

    @ApiModelProperty(value = "用户唯一表示")
    private String memCard;

    @ApiModelProperty(value = "0: 线上督导结果, 1:线下督导结果, 2:质控结果")
    private Integer type;

    @ApiModelProperty(value = "督导与指控表id")
    private Long objId;

    @ApiModelProperty(value = "标准判断内容")
    private String criteria;

    @ApiModelProperty(value = "0:未通过 1:通过")
    private Integer isPass;

    @ApiModelProperty(value = "状态 0:未删除 1删除")
    private Integer status;

    @CreatedDate
    @Column(nullable = false, updatable = false)
    private LocalDateTime createTime;

    @LastModifiedDate
    @Column()
    private LocalDateTime updateTime;
}
