fix: add FromRow derive macros for agent repo structs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user