Skip to content

Commit

Permalink
package: Add license, category, and packager details
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsJamie9494 committed Dec 31, 2024
1 parent 940f6ac commit 932b900
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/models/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ pub struct Package {
pub url: String,
pub time_file: i32,
pub time_build: i32,
#[sqlx(rename = "rpm_license")]
pub license: String,
#[sqlx(rename = "rpm_group")]
pub category: String,
#[sqlx(rename = "rpm_packager")]
pub packager: String,
}

#[derive(Serialize, Debug)]
Expand All @@ -45,6 +51,9 @@ pub struct GroupedPackage {
pub summary: String,
pub description: String,
pub url: String,
pub license: String,
pub category: String,
pub packager: String,
}

impl PartialEq for Package {
Expand Down

0 comments on commit 932b900

Please sign in to comment.