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

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseNoDeleteDO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.List;

@TableName(value = "elderly_items_round", autoResultMap = true)
@KeySequence("elderly_items_round_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ElderlyItemsRoundDO extends BaseNoDeleteDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "记录人")
    private String recorder;

    @Schema(description = "角色")
    private String role;

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

    @Schema(description = "楼栋id")
    private Long buildId;

    @Schema(description = "楼层id")
    private Long floorId;

    @Schema(description = "房间id")
    private Long roomId;

    @Schema(description = "巡视项目")
    private String items;

    @Schema(description = "语音")
    private String voice;

    @Schema(description = "备注")
    private String remark;

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

    @Schema(description = "巡房时间")
    private LocalDateTime roundTime;

    @Schema(description = "状态，0：异常，1：正常")
    private Integer status;

    @TableField(exist = false)
    private String elderName;
    @TableField(exist = false)
    private String roomName;
}

