229b09b895
Build & Deploy to K8s / build-and-deploy (push) Failing after 7m14s
Epic A: ai-assistant 디렉토리/Spring 프록시/프론트엔드 메뉴 완전 제거 Epic B: Flyway 도입 + 13 신규 테이블 마이그레이션 Epic C: 9 서비스 + 7 컨트롤러 + LlmClient 추상화 (Java 21/Spring/MyBatis) Epic D: ApiKey 인증 필터 (sk-pipe-* 키 SHA-256 검증) Epic E: OpenClaw 외부 엔진 docker-compose 통합 Epic F: Next.js 7 페이지 + lib/api/aiAgent.ts 이식 Epic G: 화면 그룹/메뉴 등록 마이그레이션 (V014) Epic H: 통합 빌드 검증 - DB: invyone PostgreSQL에 ai_agents/ai_agent_groups/... 13 테이블 + Quartz - 멀티테넌시: 모든 테이블에 company_code 강제 필터 - LLM: Anthropic/OpenAI/Google/Ollama 직접 클라이언트 (Spring AI 미도입) - 스케줄러: Quartz JDBC JobStore (cron 기반) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
32 lines
796 B
Java
32 lines
796 B
Java
package com.erp.ai.model;
|
|
|
|
import lombok.Data;
|
|
|
|
import java.math.BigDecimal;
|
|
import java.time.OffsetDateTime;
|
|
|
|
/**
|
|
* AI 사용량 로그 (테이블: ai_agent_usage_logs)
|
|
*/
|
|
@Data
|
|
public class AiAgentUsageLog {
|
|
private Long id;
|
|
private String user_id;
|
|
private Long api_key_id;
|
|
private Long agent_id;
|
|
private Long conversation_id;
|
|
private String provider_name;
|
|
private String model_name;
|
|
private Integer prompt_tokens;
|
|
private Integer completion_tokens;
|
|
private Integer total_tokens;
|
|
private BigDecimal cost_usd;
|
|
private Integer response_time_ms;
|
|
private Boolean success;
|
|
private String error_message;
|
|
private String request_path;
|
|
private String ip_address;
|
|
private String company_code;
|
|
private OffsetDateTime created_at;
|
|
}
|