use super::schema::sites; use beteran_common_rust as bcr; /// #[derive(Eq, Hash, Identifiable, Queryable, PartialEq, PartialOrd, Debug, Clone)] #[table_name = "sites"] pub struct Site { /// pub id: uuid::Uuid, /// pub url: String, /// pub name: Option, /// pub path: Option, /// pub show: bool, /// pub can_use: bool, /// pub memo: Option, /// pub expires_at: Option, /// pub created_at: i64, /// pub updated_at: i64, } /// #[derive(Insertable, Debug, Clone)] #[table_name = "sites"] pub struct NewSite { /// pub url: String, /// pub name: Option, /// pub path: Option, /// pub show: bool, /// pub can_use: bool, /// pub memo: Option, /// pub expires_at: Option, } /// #[derive(AsChangeset, Debug, Clone)] #[table_name = "sites"] pub struct ModifySite { /// pub url: String, /// pub name: Option, /// pub path: Option, /// pub show: bool, /// pub can_use: bool, /// pub memo: Option, /// pub expires_at: Option, } /// #[derive(Debug, Clone)] pub struct FindAllSearch { /// pub url_like: Option, /// pub name_like: Option, /// pub path_like: Option, /// pub show: Option, /// pub can_use: Option, /// pub memo_like: Option, } /// #[derive(Debug, Clone)] pub struct FindAll { /// pub search: Option, /// pub pagination: Option, /// pub sorts: Option>, }