package com.agent.management.model.entity;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * 智能体（工作流）分类 — 自引用树结构，支持无限层级
 * 与技能分类（Category）独立
 */
@Data
public class WfCategory {

    private Long id;

    private Long parentId;

    private String name;

    private Integer sortOrder;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    public void onCreate() {
        createdAt = LocalDateTime.now();
        updatedAt = LocalDateTime.now();
    }

    public void onUpdate() {
        updatedAt = LocalDateTime.now();
    }
}
