package com.yupi.project.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 车位表
 *
 * @TableName parking_spot
 */
@TableName(value = "parking_spot")
@Data
public class ParkingSpot implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 车位唯一标识符 (例如，车位号)
     */
    private String spotUid;

    /**
     * 车位状态 (AVAILABLE, OCCUPIED_BY_CAR, RESERVED, CHARGING, MAINTENANCE, UNAVAILABLE)
     */
    private String status;

    /**
     * 位置描述 (例如，楼层、区域)
     */
    private String locationDescription;

    /**
     * 此车位是否可指派机器人前往
     */
    private Boolean robotAssignable;

    /**
     * 当前占用此车位的充电会话ID (关联 charging_session.id)
     */
    private Long currentSessionId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 最后更新时间
     */
    private Date updateTime;

    /**
     * 逻辑删除标志 (0:未删, 1:已删)
     */
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
} 