summaryrefslogtreecommitdiffstats
path: root/rust/src/database_models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-16 22:15:34 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-16 22:15:34 -0700
commite6b678fd1abc162e682b4c4c3ed65feb31e617dc (patch)
tree610a026849528126d82b8e3265d6f960d3ffc915 /rust/src/database_models.rs
parentf3b2432664b28bd979d1600c2200e3fe41c8e380 (diff)
downloadfatcat-e6b678fd1abc162e682b4c4c3ed65feb31e617dc.tar.gz
fatcat-e6b678fd1abc162e682b4c4c3ed65feb31e617dc.zip
progress
Diffstat (limited to 'rust/src/database_models.rs')
-rw-r--r--rust/src/database_models.rs20
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,
}