diff --git a/crates/lib/mysql_queries/src/queries/model_weights/create_weight.rs b/crates/lib/mysql_queries/src/queries/model_weights/create_weight.rs index 97f7e87e13..7b1f30f0e9 100644 --- a/crates/lib/mysql_queries/src/queries/model_weights/create_weight.rs +++ b/crates/lib/mysql_queries/src/queries/model_weights/create_weight.rs @@ -1,3 +1,31 @@ -use sqlx::{MySql, Pool}; -use enums::by_table::generic_synthetic_ids::id_category::IdCategory; +use sqlx::MySqlPool; +use enums::by_table::{generic_synthetic_ids::id_category::IdCategory, model_weights::{weights_types::WeightsType, weights_category::WeightsCategory}}; +use enums::common::visibility::Visibility; +use tokens::tokens::users::UserToken; +pub struct CreateModelWeightsArgs<'a> { + pub token: &'a str, + pub weights_type: WeightsType, + pub weights_category: WeightsCategory, + pub title: String, + pub maybe_thumbnail_token: Option, + pub description_markdown: String, + pub description_rendered_html: String, + pub creator_user_token: Option<&'a UserToken>, + pub creator_ip_address: &'a str, + pub creator_set_visibility: Visibility, + pub maybe_last_update_user_token: Option, + pub original_download_url: Option, + pub original_filename: Option, + pub file_size_bytes: i32, + pub file_checksum_sha2: String, + pub private_bucket_hash: String, + pub maybe_private_bucket_prefix: Option, + pub maybe_private_bucket_extension: Option, + pub cached_user_ratings_total_count: u32, + pub cached_user_ratings_positive_count: u32, + pub cached_user_ratings_negative_count: u32, + pub maybe_cached_user_ratings_ratio: Option, + pub version: i32, + pub mysql_pool: &'a MySqlPool, +} \ No newline at end of file