alibi_sqlx/store/entities/
account.rs1use crate::AuthEntity;
2use chrono::{DateTime, Utc};
3use serde::Serialize;
4
5#[derive(AuthEntity, Clone, Debug, PartialEq, Eq, Serialize, sqlx::FromRow)]
6#[auth(role = "account", table = "accounts")]
7pub struct Model {
8 pub id: String,
9 pub account_id: String,
10 pub provider_id: String,
11 pub user_id: String,
12 pub access_token: Option<String>,
13 pub refresh_token: Option<String>,
14 pub id_token: Option<String>,
15 pub access_token_expires_at: Option<DateTime<Utc>>,
16 pub refresh_token_expires_at: Option<DateTime<Utc>>,
17 pub scope: Option<String>,
18 pub password: Option<String>,
19 pub created_at: DateTime<Utc>,
20 pub updated_at: DateTime<Utc>,
21}