package com.zzyl.nursing.domain;

import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.zzyl.common.annotation.Excel;
import com.zzyl.common.core.domain.BaseEntity;

/**
 * 入住表对象 check_in
 * 
 * @author Zhy
 * @date 2025-02-25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("入住表实体")
public class CheckIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    // 主键ID
    @ApiModelProperty("主键ID")
    private Long id;

    // 老人姓名
    @Excel(name = "老人姓名")
    @ApiModelProperty("老人姓名")
    private String elderName;

    // 老人ID
    @Excel(name = "老人ID")
    @ApiModelProperty("老人ID")
    private Long elderId;

    // 身份证号
    @Excel(name = "身份证号")
    @ApiModelProperty("身份证号")
    private String idCardNo;

    // 入住开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入住开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("入住开始时间")
    private LocalDateTime startDate;

    // 入住结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入住结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("入住结束时间")
    private LocalDateTime endDate;

    // 护理等级名称
    @Excel(name = "护理等级名称")
    @ApiModelProperty("护理等级名称")
    private String nursingLevelName;

    // 入住床位
    @Excel(name = "入住床位")
    @ApiModelProperty("入住床位")
    private String bedNumber;

    // 状态 (0: 已入住, 1: 已退住)
    @Excel(name = "状态 (0: 已入住, 1: 已退住)")
    @ApiModelProperty("状态 (0: 已入住, 1: 已退住)")
    private Integer status;

    // 排序编号
    @Excel(name = "排序编号")
    @ApiModelProperty("排序编号")
    private Integer sortOrder;

}
