16 lines
360 B
Rust
16 lines
360 B
Rust
//! Database model structs
|
|
|
|
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
/// Playlist item entry
|
|
#[allow(dead_code)]
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub struct PlaylistItem {
|
|
pub id: Option<i64>,
|
|
pub playlist_id: String,
|
|
pub item_id: String,
|
|
pub sort_order: i32,
|
|
pub added_at: Option<DateTime<Utc>>,
|
|
}
|