diff --git a/src/models.rs b/src/models.rs index bae06f4d4f272ece41ec8dd572ff8443ca543da8..8ab40c1703f6e772cce1d77b88ce44bba449ed24 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,14 +1,6 @@ use crate::schema::user_programs; use bigdecimal::BigDecimal; -#[derive(Queryable)] -pub struct UserProgram { - pub id: i32, - pub discord_user_id: u64, - pub name: String, - pub code: String, -} - #[derive(Insertable)] #[table_name = "user_programs"] pub struct NewUserProgram<'a> { @@ -19,7 +11,9 @@ pub struct NewUserProgram<'a> { #[derive(Clone, Queryable)] pub struct ServerSetting { + #[allow(dead_code)] pub id: i32, + #[allow(dead_code)] pub guild_id: BigDecimal, pub starboard_threshold: i32, pub starboard_emoji_id: BigDecimal,