forked from
rocksky.app/rocksky
A decentralized music tracking and discovery platform built on AT Protocol 馃幍
1use chrono::{DateTime, Utc};
2use serde::Deserialize;
3
4#[derive(Debug, Deserialize, sqlx::FromRow, Default, Clone)]
5pub struct DropboxToken {
6 pub xata_id: String,
7 pub xata_version: i32,
8 pub refresh_token: String,
9 #[serde(with = "chrono::serde::ts_seconds")]
10 pub xata_createdat: DateTime<Utc>,
11 #[serde(with = "chrono::serde::ts_seconds")]
12 pub xata_updatedat: DateTime<Utc>,
13}
14
15#[derive(Debug, Deserialize, sqlx::FromRow, Default, Clone)]
16pub struct DropboxTokenWithDid {
17 pub xata_id: String,
18 pub xata_version: i32,
19 pub refresh_token: String,
20 pub did: String,
21 #[serde(with = "chrono::serde::ts_seconds")]
22 pub xata_createdat: DateTime<Utc>,
23 #[serde(with = "chrono::serde::ts_seconds")]
24 pub xata_updatedat: DateTime<Utc>,
25}