package com.emoon.chat.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户查看病历记录实体.
 */
@Data
@TableName("medical_record_view")
public class MedicalRecordView implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 关联的病历记录 ID.
     */
    @TableField("patient_record_id")
    private String patientRecordId;

    /**
     * 用户 ID.
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 查看时间.
     */
    @TableField("view_time")
    private LocalDateTime viewTime;
}

