package cn.iocoder.yudao.module.system.dal.dataobject.biz;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 康复训练记录 DO
 *
 * @author 系统管理员
 */
@TableName("training_records")
@KeySequence("training_records_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TrainingRecordsDO{

    /**
     * 训练记录ID（主键，自增）
     */
    @TableId
    private Integer recordId;
    /**
     * 长者ID
     */
    @Schema(description = "长者ID")
    private Integer elderId;

    @Schema(description = "长者姓名")
    private String elderName;
    /**
     * 训练时间
     */
    @Schema(description = "训练时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date trainingTime;
    /**
     * 康复师
     */
    @Schema(description = "康复师")
    private String therapist;
    /**
     * 记录内容（训练项目、时长等）
     */
    @Schema(description = "记录内容")
    private String recordContent;

    private LocalDateTime createTime;
    /**
     * 最后更新时间
     */
    private LocalDateTime updateTime;

    private Long tenantId;

    @TableField(exist = false)
    private ElderlyInfoDO elderlyInfo;

    @TableField(exist = false)
    private List<AttachmentsDO> attachments;

    @TableField(exist = false)
    private String bedInfo;

}