fix: add FromRow derive macros for agent repo structs

This commit is contained in:
2026-09-15 00:06:37 +09:00
parent a8ef9ad3cb
commit 379aa5ce4d
2 changed files with 83 additions and 23 deletions
+6 -6
View File
@@ -1,10 +1,10 @@
use anyhow::Result;
use sqlx::PgPool;
use sqlx::{PgPool, FromRow};
use uuid::Uuid;
use serde::{Deserialize, Serialize};
use chrono::{DateTime, Utc};
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, FromRow)]
pub struct AgentPrompt {
pub id: Uuid,
pub project_id: String,
@@ -22,7 +22,7 @@ pub struct AgentPrompt {
pub updated_at: DateTime<Utc>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, FromRow)]
pub struct AgentSkill {
pub id: Uuid,
pub project_id: String,
@@ -39,7 +39,7 @@ pub struct AgentSkill {
pub updated_at: DateTime<Utc>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, FromRow)]
pub struct AgentDecision {
pub id: Uuid,
pub project_id: String,
@@ -59,7 +59,7 @@ pub struct AgentDecision {
pub updated_at: DateTime<Utc>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, FromRow)]
pub struct RolePromptMapping {
pub id: Uuid,
pub project_id: String,
@@ -71,7 +71,7 @@ pub struct RolePromptMapping {
pub updated_at: DateTime<Utc>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, FromRow)]
pub struct AgentMetrics {
pub id: Uuid,
pub project_id: String,