use crate::schema::*; #[derive(Queryable, Debug)] pub struct GuildSetting { pub guild_id: i64, pub key: String, pub value: Option, } #[derive(Insertable, Debug)] #[table_name = "guild_settings"] pub struct GuildSettingInsert { pub guild_id: i64, pub key: String, pub value: String, } #[derive(Queryable, Debug)] pub struct GuildPlaylist { pub guild_id: i64, pub name: String, pub url: String, } #[derive(Insertable, Debug)] #[table_name = "guild_playlists"] pub struct GuildPlaylistInsert { pub guild_id: i64, pub name: String, pub url: String, } #[derive(Queryable, Debug, Clone)] pub struct Gif { pub id: i64, pub category: Option, pub name: Option, pub url: String, } #[derive(Insertable, Debug)] #[table_name = "gifs"] pub struct GifInsert { pub category: Option, pub name: Option, pub url: String, }