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, sqlx::FromRow, Deserialize, Clone)]
5pub struct ApiKey {
6 pub xata_id: String,
7 pub name: String,
8 pub api_key: String,
9 pub shared_secret: String,
10 pub description: Option<String>,
11 pub user_id: String,
12 pub enabled: bool,
13 #[serde(with = "chrono::serde::ts_seconds")]
14 pub xata_createdat: DateTime<Utc>,
15 #[serde(with = "chrono::serde::ts_seconds")]
16 pub xata_updatedat: DateTime<Utc>,
17}