//! models + account_api_keys 表相关模型 use sqlx::FromRow; /// models 表行 #[derive(Debug, FromRow)] pub struct ModelRow { pub id: String, pub provider_id: String, pub model_id: String, pub alias: String, pub context_window: i64, pub max_output_tokens: i64, pub supports_streaming: bool, pub supports_vision: bool, pub enabled: bool, pub is_embedding: bool, pub model_type: String, pub pricing_input: f64, pub pricing_output: f64, pub created_at: String, pub updated_at: String, } /// account_api_keys 表行 #[derive(Debug, FromRow)] pub struct AccountApiKeyRow { pub id: String, pub provider_id: String, pub key_label: Option, pub permissions: String, pub enabled: bool, pub last_used_at: Option, pub created_at: String, pub key_value: String, }