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