//! prompt_templates + prompt_versions 表相关模型 use sqlx::FromRow; /// prompt_templates 表行 #[derive(Debug, FromRow)] pub struct PromptTemplateRow { pub id: String, pub name: String, pub category: String, pub description: Option, pub source: String, pub current_version: i32, pub status: String, pub created_at: String, pub updated_at: String, } /// prompt_versions 表行 #[derive(Debug, FromRow)] pub struct PromptVersionRow { pub id: String, pub template_id: String, pub version: i32, pub system_prompt: String, pub user_prompt_template: Option, pub variables: String, pub changelog: Option, pub min_app_version: Option, pub created_at: String, }