package com.example.entity;

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.util.Date;

@TableName("doctor_patient")
@Data
public class DoctorPatient {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 医生ID
     */
    private Integer doctorId;

    /**
     * 患者ID
     */
    private Integer patientId;

    /**
     * 关系建立时间
     */
    private Date relationshipStart;

    /**
     * 状态(正常/已结束)
     */
    private String status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 医生信息
     */
    @TableField(exist = false)
    private Doctor doctor;

    /**
     * 患者信息
     */
    @TableField(exist = false)
    private Patient patient;
} 