use crate::models::common::Provider; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use uuid::Uuid; #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow)] pub struct UserOAuth { pub id: Uuid, pub user_id: Uuid, pub provider: Provider, pub provider_user_id: String, pub provider_username: Option, pub provider_email: Option, pub access_token_ciphertext: Option, pub refresh_token_ciphertext: Option, pub token_expires_at: Option>, pub linked_at: DateTime, pub last_used_at: Option>, }