From 67b54449a1bbde257e9454419e7bb70ebc515c0f Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Thu, 14 Nov 2024 21:43:54 +0000 Subject: implement artwork upload --- src/artwork.rs | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/artwork.rs') 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, - /// name of the artwork - pub title: Option, - /// description of the artwork - pub description: Option, - /// source url of the artwork - pub url_source: Option, - /// artwork creation time - created_at: Option, - /// id of the artist - #[sqlx(Flatten)] - pub artist: Artist, - /// ids of files - #[sqlx(Flatten)] - pub files: Vec, - // /// TODO: comments in thread, - // #[sqlx(Flatten)] - // comments: Vec, -} -- cgit