diff options
Diffstat (limited to 'rust/src/database_models.rs')
-rw-r--r-- | rust/src/database_models.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index a1f7fc04..9aebb0f9 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -143,25 +143,25 @@ pub struct FileReleaseRow { #[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)] #[table_name = "editgroup"] pub struct EditgroupRow { - id: i64, + pub id: i64, //extra_json: Option<Json>, - editor_id: i64, - description: Option<String>, + pub editor_id: i64, + pub description: Option<String>, } #[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)] #[table_name = "editor"] pub struct EditorRow { - id: i64, - username: String, - is_admin: bool, - active_editgroup_id: Option<i64>, + pub id: i64, + pub username: String, + pub is_admin: bool, + pub active_editgroup_id: Option<i64>, } #[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)] #[table_name = "changelog"] pub struct ChangelogRow { - id: i64, - editgroup_id: i64, - timestamp: chrono::NaiveDateTime, + pub id: i64, + pub editgroup_id: i64, + pub timestamp: chrono::NaiveDateTime, } |