2019-03-28 17:24:19 -04:00
|
|
|
use diesel::Queryable;
|
2019-03-27 16:50:54 -04:00
|
|
|
|
2019-04-05 19:06:43 -04:00
|
|
|
use crate::schema::*;
|
2019-03-27 16:50:54 -04:00
|
|
|
|
2019-03-29 14:50:48 -04:00
|
|
|
#[derive(Debug, Queryable)]
|
2019-03-27 16:50:54 -04:00
|
|
|
pub struct Media {
|
|
|
|
pub id: u32,
|
|
|
|
pub display_name: String,
|
|
|
|
pub notes: String,
|
|
|
|
}
|
|
|
|
|
2019-03-29 14:50:48 -04:00
|
|
|
#[derive(Debug, Queryable)]
|
2019-03-27 16:50:54 -04:00
|
|
|
pub struct MediaType {
|
|
|
|
pub id: u32,
|
|
|
|
pub type_name: String,
|
|
|
|
pub description: String,
|
|
|
|
}
|
|
|
|
|
2019-03-29 14:50:48 -04:00
|
|
|
#[derive(Debug, Queryable)]
|
2019-03-27 16:50:54 -04:00
|
|
|
pub struct MediaFormat {
|
|
|
|
pub id: u32,
|
|
|
|
pub is_physical: bool,
|
|
|
|
pub format_name: String,
|
|
|
|
pub description: String,
|
|
|
|
}
|
|
|
|
|
2019-03-29 14:50:48 -04:00
|
|
|
#[derive(Debug, Queryable)]
|
2019-03-27 16:50:54 -04:00
|
|
|
pub struct MediaTypeFormatLink {
|
|
|
|
pub media_type_id: i32,
|
|
|
|
pub media_format_id: i32,
|
2019-04-05 19:06:43 -04:00
|
|
|
}
|