forked from MountainTownTechnology/aural_isle
more updates to MODELS and SCHEMA
This commit is contained in:
18
MODELS.md
18
MODELS.md
@ -227,8 +227,8 @@ struct Album {
|
||||
deleted_at: Option<chrono::DateTime>,
|
||||
tags: Option<Vec<Tag>>,
|
||||
comments: Option<Vec<Comment>>,
|
||||
cover: Option<String>,
|
||||
images: Option<Vec<String>>,
|
||||
cover: Option<ImageId>,
|
||||
images: Option<Vec<ImageId>>,
|
||||
}
|
||||
```
|
||||
|
||||
@ -247,9 +247,9 @@ struct Playlist {
|
||||
created_by: PersonId,
|
||||
created_at: chrono::DateTime,
|
||||
modified_at: chrono::DateTime,
|
||||
deleted_at: Option<chrono::DateTime>
|
||||
deleted_at: Option<chrono::DateTime>,
|
||||
is_public: bool,
|
||||
cover: Option<String>,
|
||||
cover: Option<ImageId>,
|
||||
tracks: Vec<Track>,
|
||||
tags: Option<Vec<Tag>>,
|
||||
comments: Option<Vec<Comment>>,
|
||||
@ -272,11 +272,12 @@ struct Article {
|
||||
created_by: PersonId,
|
||||
created_at: chrono::DateTime,
|
||||
modified_at: chrono::DateTime,
|
||||
deleted_at: Option<chrono::DateTime>
|
||||
published_at: Option<chrono::DateTime>,
|
||||
deleted_at: Option<chrono::DateTime>,
|
||||
is_public: bool,
|
||||
is_draft: bool,
|
||||
cover: Option<String>,
|
||||
images: Option<Vec<String>>,
|
||||
cover: Option<ImageId>,
|
||||
images: Option<Vec<ImageId>>,
|
||||
tracks: Option<Vec<Track>>,
|
||||
tags: Option<Vec<Tag>>,
|
||||
comments: Option<Vec<Comment>>,
|
||||
@ -336,11 +337,14 @@ struct ImageId {
|
||||
}
|
||||
struct Image {
|
||||
id: ImageId,
|
||||
name: Option<String>,
|
||||
path: String,
|
||||
url: String,
|
||||
width: usize,
|
||||
height: usize,
|
||||
alt_text: String,
|
||||
is_public: bool,
|
||||
allow_hotlinking: bool,
|
||||
created_by: PersonId,
|
||||
created_at: chrono::DateTime,
|
||||
modified_by: PersonId,
|
||||
|
Reference in New Issue
Block a user