Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18a7981d82
|
||
|
|
fc5644bf37
|
@@ -1,9 +1,12 @@
|
|||||||
|
#[derive(Debug, Default, serde::Deserialize, serde::Serialize, utoipa::ToSchema)]
|
||||||
pub struct SongEvent {
|
pub struct SongEvent {
|
||||||
pub id: uuid::Uuid,
|
pub id: uuid::Uuid,
|
||||||
pub song_id: uuid::Uuid,
|
pub song_id: uuid::Uuid,
|
||||||
pub user_id: uuid::Uuid,
|
pub user_id: uuid::Uuid,
|
||||||
pub event_type: String,
|
pub event_type: String,
|
||||||
|
#[serde(with = "time::serde::rfc3339::option")]
|
||||||
pub event_time: Option<time::OffsetDateTime>,
|
pub event_time: Option<time::OffsetDateTime>,
|
||||||
|
#[serde(with = "time::serde::rfc3339::option")]
|
||||||
pub date_created: Option<time::OffsetDateTime>,
|
pub date_created: Option<time::OffsetDateTime>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user