package com.agent.management.model.entity;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class TagGroup {

    private Long id;

    private String name;

    private String description;

    private Integer sortOrder;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

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

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