diff options
author | 2024-11-14 21:43:54 +0000 | |
---|---|---|
committer | 2024-11-14 21:43:54 +0000 | |
commit | 67b54449a1bbde257e9454419e7bb70ebc515c0f (patch) | |
tree | e23710c2d1f5d219205f26af727b478e455a0071 /src/artwork.rs | |
parent | 469a3ad33914f7eff6edc9ca7fabb12f2950da84 (diff) | |
download | critch-67b54449a1bbde257e9454419e7bb70ebc515c0f.tar.gz critch-67b54449a1bbde257e9454419e7bb70ebc515c0f.tar.bz2 critch-67b54449a1bbde257e9454419e7bb70ebc515c0f.zip |
Diffstat (limited to 'src/artwork.rs')
-rw-r--r-- | src/artwork.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/artwork.rs b/src/artwork.rs index 458fd38..8b13789 100644 --- a/src/artwork.rs +++ b/src/artwork.rs @@ -1,27 +1 @@ -use time::{OffsetDateTime, PrimitiveDateTime}; -use uuid::Uuid; -use crate::{artist::Artist, comment::Comment, file::File}; - -#[derive(sqlx::FromRow)] -pub struct Artwork { - /// artwork id - id: Option<i32>, - /// name of the artwork - pub title: Option<String>, - /// description of the artwork - pub description: Option<String>, - /// source url of the artwork - pub url_source: Option<String>, - /// artwork creation time - created_at: Option<PrimitiveDateTime>, - /// id of the artist - #[sqlx(Flatten)] - pub artist: Artist, - /// ids of files - #[sqlx(Flatten)] - pub files: Vec<File>, - // /// TODO: comments in thread, - // #[sqlx(Flatten)] - // comments: Vec<Comment>, -} |