package com.usky.ems.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 空间（base_space）
 * 空间类型：1项目 2区域 3建筑
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("base_space")
public class BaseSpace implements Serializable {

    private static final long serialVersionUID = 1L;

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

    private String name;
    @TableField("parent_id")
    private Long parentId;
    private Integer type;
    @TableField("root_id")
    private Long rootId;
    private String path;
    private Integer deep;
    @TableField("updated_by")
    private String updatedBy;
    @TableField("update_time")
    private LocalDateTime updateTime;
    @TableField("created_by")
    private String createdBy;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("tenant_id")
    private Integer tenantId;
}
