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.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import org.springframework.format.annotation.DateTimeFormat;

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

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

    @Schema(description = "长者姓名")
    private String elderName;
    /**
     * 记录时间
     */
    @Schema(description = "记录时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date recordTime;
    /**
     * 营养师
     */
    @Schema(description = "营养师")
    private String dietitian;
    /**
     * 记录内容
     */
    @Schema(description = "记录内容")
    private String recordContent;

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

    private Long tenantId;

    @TableField(exist = false)
    private String bedInfo;

    @TableField(exist = false)
    private ElderlyInfoDO elderlyInfo;

}