package com.erp.ai.model;

import lombok.Data;

import java.time.OffsetDateTime;

/**
 * AI 대화 (테이블: ai_agent_conversations)
 */
@Data
public class AiAgentConversation {
    private Long id;
    private String conversation_id;
    private Long agent_id;
    private String user_id;
    private Long api_key_id;
    private String title;
    private Integer message_count;
    private Long total_tokens;
    private String status;
    private String metadata;
    private OffsetDateTime created_at;
    private OffsetDateTime updated_at;
    /** JOIN: agent_name */
    private String agent_name;
    /** JOIN: COALESCE(agent name, metadata->>'group_name') */
    private String display_name;
}
