Change Playlist Model to use chronos time
This commit is contained in:
parent
74044f2e17
commit
7f298f75ce
@ -636,11 +636,11 @@ pub struct Playlist {
|
|||||||
#[cfg_attr(feature = "ssr", diesel(deserialize_as = i32))]
|
#[cfg_attr(feature = "ssr", diesel(deserialize_as = i32))]
|
||||||
pub id: Option<i32>,
|
pub id: Option<i32>,
|
||||||
/// The time the playlist was created
|
/// The time the playlist was created
|
||||||
#[cfg_attr(feature = "ssr", diesel(deserialize_as = SystemTime))]
|
#[cfg_attr(feature = "ssr", diesel(deserialize_as = NaiveDateTime))]
|
||||||
pub created_at: Option<SystemTime>,
|
pub created_at: Option<NaiveDateTime>,
|
||||||
/// The time the playlist was last updated
|
/// The time the playlist was last updated
|
||||||
#[cfg_attr(feature = "ssr", diesel(deserialize_as = SystemTime))]
|
#[cfg_attr(feature = "ssr", diesel(deserialize_as = NaiveDateTime))]
|
||||||
pub updated_at: Option<SystemTime>,
|
pub updated_at: Option<NaiveDateTime>,
|
||||||
/// The id of the user who owns the playlist
|
/// The id of the user who owns the playlist
|
||||||
pub owner_id: i32,
|
pub owner_id: i32,
|
||||||
/// The name of the playlist
|
/// The name of the playlist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user