use super::schema::api_kgon_games; use beteran_common_rust as bcr; /// #[derive(Eq, Hash, Identifiable, Queryable, PartialEq, Debug, Clone)] #[table_name = "api_kgon_games"] pub struct Game { /// pub id: i64, /// pub vendor_id: i64, /// pub key: String, /// pub names: String, /// pub platform: String, /// pub category: String, /// pub game_type: String, /// pub image: Option, /// pub created_at: i64, /// pub updated_at: i64, } /// #[derive(Insertable, Debug, Clone)] #[table_name = "api_kgon_games"] pub struct NewGame { /// pub id: i64, /// pub vendor_id: i64, /// pub key: String, /// pub names: String, /// pub platform: String, /// pub category: String, /// pub game_type: String, /// pub image: Option, } /// #[derive(AsChangeset, Debug, Clone)] #[table_name = "api_kgon_games"] pub struct ModifyGame { /// pub key: String, /// pub names: String, /// pub platform: String, /// pub category: String, /// pub game_type: String, /// pub image: Option, } /// #[derive(Insertable, AsChangeset, Debug, Clone)] #[table_name = "api_kgon_games"] pub struct UpsertGame { /// pub id: i64, /// pub vendor_id: i64, /// pub key: String, /// pub names: String, /// pub platform: String, /// pub category: String, /// pub game_type: String, /// pub image: Option, } /// #[derive(Debug, Clone)] pub struct FindAllSearch { /// pub vendor_id: Option, /// pub key_like: Option, /// pub platform_like: Option, /// pub category_like: Option, /// pub game_type_like: Option, } /// #[derive(Debug, Clone)] pub struct FindAll { pub search: Option, /// pub pagination: Option, /// pub sorts: Option>, }