package org.dromara.inspection.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.util.Map;

/**
 * 巡检点位对象 ar_point
 *
 * @author Lion Li
 * @date 2025-01-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ar_point", autoResultMap = true)
public class ArPoint extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 点位ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 所属区域ID
     */
    private Long regionId;

    /**
     * 点位名称
     */
    private String pointName;

    /**
     * 点位编码
     */
    private String pointCode;

    /**
     * 点位业务数据(包含坐标、预设等)
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Map<String, Object> positionData;

    /**
     * 备注
     */
    private String remark;

    /**
     * 删除标志(0存在 1删除)
     */
    @TableLogic
    private Integer delFlag;

}
