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

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import java.time.LocalDate;

/**
 * @Author: jinyd
 * @CreateTime: 2024/8/13  9:16
 * @Description:
 * @Version: 4.0
 */

@TableName("elderly_retreat_record")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ElderlyRetreatRecordDO extends BaseDO {

    /**
     * 主键ID
     */
    @TableId
    private Long id;
    /**
     * 长者id
     */
    private Long elderlyId;
    /**
     * 退住日期
     */
    private LocalDate retreatDate;
    /**
     * 费用截止日期
     */
    private LocalDate costDeadlineDate;
    /**
     * 退住原因
     */
    private String reason;
    /**
     * 退住描述
     */
    private String description;
    /**
     * 审批状态，0-审批流程状态，1-系统审批
     */
    private Integer status;
    /**
     * 是否当前最新标识，0-是，1-否
     */
    private Integer currentFlag;
    /**
     * 床位号
     */
    private String bedName;
    /**
     *  申请类型，0-入住，1-退住'
     */
    private Integer applyType;

    private Long tenantId;

    private Integer orgType;
}
