Add is_highlighted and is_archived to project
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user