package com.rj.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("qwei_department")
@Schema(description = "企微部门表")
public class QweiDepartment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    @Schema(description = "主键UUID")
    private String id;

    @TableField("tenant_id")
    @Schema(description = "租户ID(UUID)")
    private String tenantId;

    @TableField("dept_id")
    @Schema(description = "企微部门ID")
    private Long deptId;

    @TableField("dept_name")
    @Schema(description = "部门名称")
    private String deptName;

    @TableField("parent_dept_id")
    @Schema(description = "上级部门ID")
    private Long parentDeptId;

    @TableField("order_num")
    @Schema(description = "部门排序")
    private Integer orderNum;

    @TableField("is_deleted")
    @Schema(description = "是否删除(0否1是)")
    private Integer isDeleted;

    @TableField("created_at")
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}

