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

import com.alibaba.fastjson.annotation.JSONField;
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.io.Serializable;
import java.util.Date;

/**
 * 入住办理记录表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2024-05-20 16:20:18
 */
@Data
@TableName("elderly_check_in_record")
public class ElderlyCheckInRecordDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 长者ID
     */
    private Long elderId;
    /**
     * 状态,1：待入住办理 2：已入住 3：退住
     */
    private Integer status;
    /**
     * 入住时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date checkInTime;
    /**
     * 文件状态，0：未上传 1：已上传
     */
    private Integer fileStatus;
    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    /**
     * 是否当前最新，0-是，1-否
     */
    private Integer currentFlag;

    private Long tenantId;

    private Long associateId;

    private Integer orgType;


    @TableField(exist = false)
    private String elderName;

    @TableField(exist = false)
    private Integer elderSex;

    @TableField(exist = false)
    private Integer inStatusType;

    @TableField(exist = false)
    private String nurseLevelName;

}
