package org.qinan.safetyeval.infrastructure.dataobject;

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

import java.time.LocalDateTime;

/**
 * 部门数据对象（Infrastructure层 - 与数据库表对应）
 *
 * @author safety-eval
 */
@Data
@TableName("org_department")
public class OrgDepartmentDO {

    /** 主键ID */
    private Long id;

    /** 机构ID */
    private Long orgId;

    /** 上级部门ID，0为根 */
    private Long parentId;

    /** 部门名称 */
    private String deptName;

    /** 负责人 */
    private String managerName;

    /** 负责人账号 */
    private String managerAccount;

    /** 部门级别编码 */
    private String deptLevelCode;

    /** 部门级别名称 */
    private String deptLevelName;

    // ---- GBS默认字段 ----
    private String deleteEnum;
    private String remarks;
    private String createName;
    private String updateName;
    private Long tenantId;
    private Integer version;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Long createId;
    private Long updateId;
    private String env;
}
