Add is_highlighted and is_archived to project

This commit is contained in:
2024-11-10 02:16:01 +01:00
parent 1d16a16b59
commit 5eb0246863
3 changed files with 76 additions and 1 deletions

View File

@@ -18,6 +18,8 @@ pub struct Model {
pub github_url: Option<String>,
pub download_url: Option<String>,
pub visit_url: Option<String>,
pub is_highlighted: bool,
pub is_archived: bool,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
@@ -39,4 +41,4 @@ impl Related<super::data::Entity> for Entity {
fn via() -> Option<RelationDef> {
Some(super::project_thumbnails::Relation::Projects.def().rev())
}
}
}