package com.zxdmy.excite.system.entity.cloud.account;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author ss
 * @since 2026-01-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CloudDepartment implements Serializable {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 排序
     */
    private Integer departmentSort;

    /**
     * 上级部门ID
     */
    private Long departmentParentId;

    private Long companyId;

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

    /**
     * 创建者ID
     */
    private Integer creatorId;

    /**
     * 创建者姓名
     */
    private String creatorName;

    /**
     * 删除时间
     */
    private LocalDateTime deleteTime;

    /**
     * 删除者ID
     */
    private Integer deleteId;

    /**
     * 删除者姓名
     */
    private String deleteName;
    @TableField(exist=false)
    private String title;
}
