package com.gxwebsoft.dormitory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 宿舍床位
 *
 * @author 科技小王子
 * @since 2025-10-03 10:49:27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "宿舍床位")
public class DormitoryBed implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "宿舍名称")
    private String name;

    @Schema(description = "编号")
    private String code;

    @Schema(description = "楼栋ID")
    private Integer buildingId;

    @Schema(description = "楼栋名称")
    @TableField(exist = false)
    private String buildingName;

    @Schema(description = "楼层ID")
    private Integer floorId;

    @Schema(description = "楼层名称")
    @TableField(exist = false)
    private String floorName;

    @Schema(description = "宿舍ID")
    private Integer recordId;

    @Schema(description = "宿舍名称")
    @TableField(exist = false)
    private String recordName;

    @Schema(description = "学生ID")
    private Integer userId;

    @Schema(description = "学生昵称")
    @TableField(exist = false)
    private String realName;

    @Schema(description = "手机号码")
    @TableField(exist = false)
    private String phone;

    @Schema(description = "头像")
    @TableField(exist = false)
    private String avatar;

    @Schema(description = "上下铺 1下铺 2上铺 0无")
    private Boolean bunk;

    @Schema(description = "充电口")
    private Boolean chargingPort;

    @Schema(description = "排序(数字越小越靠前)")
    private Integer sortNumber;

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

    @Schema(description = "状态, 0正常, 1报修")
    private Integer status;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

}
