package com.agent.management.model.entity;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * 标签关联实体 — 支持对任意业务对象（技能、智能体等）打标
 * entityType: 业务对象类型，如 "skill"
 * entityId: 业务对象标识，如 Skill 的 folderName
 */
@Data
public class TagAssignment {

    private Long id;

    private String entityType;

    private String entityId;

    private Long tagId;

    private LocalDateTime createdAt;

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