package com.gpf.pethospital.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 检查报告实体
 */
@Data
@Accessors(chain = true)
@TableName("report")
public class Report {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 就诊记录ID
     */
    private Long visitId;

    /**
     * 宠物ID
     */
    private Long petId;

    /**
     * 报告类型（如：血常规、X光、B超等）
     */
    private String type;

    /**
     * 报告名称
     */
    private String title;

    /**
     * 报告内容摘要
     */
    private String summary;

    /**
     * 附件URL（图片或PDF）
     */
    private String attachmentUrl;

    /**
     * 检查医生ID
     */
    private Long doctorId;

    private String reportType;

    private String reportData;

    private LocalDate periodStart;

    private LocalDate periodEnd;

    private Long generatedBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 删除标记：0-未删除, 1-已删除
     */
    @TableLogic
    private Integer deleted;
}
