forked from MountainTownTechnology/aural_isle
updates MODELS and SCHEMAS
This commit is contained in:
37
MODELS.md
37
MODELS.md
@ -21,6 +21,9 @@ struct Person {
|
||||
name: String,
|
||||
handle: Option<String>,
|
||||
email: Option<Vec<String>>,
|
||||
avatar: Option<String>,
|
||||
cover: Option<String>,
|
||||
bio: Option<String>,
|
||||
is_active: bool,
|
||||
is_blocked: bool,
|
||||
created_at: chrono::DateTime,
|
||||
@ -240,8 +243,8 @@ struct PlaylistId {
|
||||
struct Playlist {
|
||||
id: PlaylistId,
|
||||
title: String,
|
||||
description: String,
|
||||
created_by: String,
|
||||
description: Option<String>,
|
||||
created_by: PersonId,
|
||||
created_at: chrono::DateTime,
|
||||
modified_at: chrono::DateTime,
|
||||
deleted_at: Option<chrono::DateTime>
|
||||
@ -313,14 +316,40 @@ struct Comment {
|
||||
target_id: CommentTargetId,
|
||||
created_by: PersonId,
|
||||
created_at: chrono::DateTime,
|
||||
modified_at: chrono::DateTime,
|
||||
deleted_at: Option<chrono::DateTime>
|
||||
modified_by: Option<PersonId>,
|
||||
modified_at: Option<chrono::DateTime>,
|
||||
deleted_by: Option<PersonId>,
|
||||
deleted_at: Option<chrono::DateTime>,
|
||||
is_public: bool,
|
||||
is_approved: bool,
|
||||
in_reply_to: Option<CommentId>,
|
||||
}
|
||||
```
|
||||
|
||||
# Image
|
||||
|
||||
An Image represents an image file that a Person wants to reference from a Label, an Artist, an Album, a Track, a Playlist, or an Article.
|
||||
|
||||
``` rust
|
||||
struct ImageId {
|
||||
id: String,
|
||||
}
|
||||
struct Image {
|
||||
id: ImageId,
|
||||
path: String,
|
||||
width: usize,
|
||||
height: usize,
|
||||
alt_text: String,
|
||||
is_public: bool,
|
||||
created_by: PersonId,
|
||||
created_at: chrono::DateTime,
|
||||
modified_by: PersonId,
|
||||
modified_at: chrono::DateTime,
|
||||
deleted_by: Option<PersonId>,
|
||||
deleted_at: Option<chrono::DateTime>,
|
||||
}
|
||||
```
|
||||
|
||||
# Collection
|
||||
|
||||
A Collection represents one or more Albums and/or Tracks that are offered together as a package for Purchase
|
||||
|
Reference in New Issue
Block a user