use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct NewMemory {
pub namespace: String,
pub name: String,
pub memory_type: String,
pub description: String,
pub body: String,
pub body_hash: String,
pub session_id: Option<String>,
pub source: String,
pub metadata: serde_json::Value,
}
#[derive(Debug, Serialize)]
pub struct MemoryRow {
pub id: i64,
pub namespace: String,
pub name: String,
pub memory_type: String,
pub description: String,
pub body: String,
pub body_hash: String,
pub session_id: Option<String>,
pub source: String,
pub metadata: String,
pub created_at: i64,
pub updated_at: i64,
#[serde(skip_serializing_if = "Option::is_none")]
pub deleted_at: Option<i64>,
}