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

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseNoDeleteDO;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 长者照护计划 DO
 *
 * @author 系统管理员
 */
@TableName("elderly_care_service_record")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ElderlyCareServiceRecordDO extends BaseNoDeleteDO {

    /**
     * 主键ID
     */
    @TableId
    private Long id;

    /**
     * 长者id
     */
    @Schema(description = "长者id")
    private Long elderId;

    /**
     * 长者名称
     */
    @Schema(description = "长者名称")
    private String elderName;

    /**
     * 记录时间
     */
    @Schema(description = "记录时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = "GMT+8")
    private Date recordTime;

    /**
     * 类型
     */
    @Schema(description = "类型")
    private Integer type;

    /**
     * 照护计划
     */
    @Schema(description = "照护计划")
    private String carePlan;

    /**
     * 模板名称
     */
    @Schema(description = "模板名称")
    private String templateName;

    /**
     * 配置
     */
    @Schema(description = "配置")
    private String jsonOption;

    /**
     * 机构id
     */
    @Schema(description = "机构id")
    private Long tenantId;
}
