From fb80d1dbe88614a53b7fd4e61b08b5e1cd296c7e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 10 Jan 2019 21:39:45 -0800 Subject: WIP on annotations and changes --- rust/src/database_models.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rust/src/database_models.rs') diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index 0b6de130..4e83afdb 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -554,6 +554,8 @@ pub struct EditgroupRow { pub id: Uuid, pub editor_id: Uuid, pub created: chrono::NaiveDateTime, + pub submitted: Option, + pub is_accepted: bool, pub extra_json: Option, pub description: Option, } @@ -565,8 +567,12 @@ impl EditgroupRow { Editgroup { editgroup_id: Some(uuid2fcid(&self.id)), editor_id: Some(uuid2fcid(&self.editor_id)), + submitted: self + .submitted + .map(|v| chrono::DateTime::from_utc(v, chrono::Utc)), description: self.description, extra: self.extra_json, + annotations: None, edits: None, } } -- cgit v1.2.3