diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-15 19:26:45 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-15 19:26:45 -0700 |
commit | e1b3c521341fcebaf5486e0af36ea15b14c40a4a (patch) | |
tree | aeb061a5abee84fc9f4caa66fc7c139f8cc955f0 /rust/src/database_models.rs | |
parent | 024e9046ab646ea029a3421575255244118b0d55 (diff) | |
download | fatcat-e1b3c521341fcebaf5486e0af36ea15b14c40a4a.tar.gz fatcat-e1b3c521341fcebaf5486e0af36ea15b14c40a4a.zip |
hack around JSON serialization for now
Diffstat (limited to 'rust/src/database_models.rs')
-rw-r--r-- | rust/src/database_models.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index 7153d18f..6c899ccf 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -1,5 +1,6 @@ use chrono; +use serde_json; use uuid::Uuid; //use diesel::prelude::*; @@ -20,7 +21,7 @@ macro_rules! entity_structs { pub rev_id: Option<i64>, pub redirect_id: Option<Uuid>, pub editgroup_id: i64, - //pub extra_json: Option<Json>, + //pub extra_json: Option<String>, } #[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)] @@ -38,7 +39,7 @@ macro_rules! entity_structs { #[table_name = "container_rev"] pub struct ContainerRevRow { pub id: i64, - //extra_json: Option<Json>, + //pub extra_json: Option<serde_json::Value>, pub name: String, pub parent_ident_id: Option<i64>, pub publisher: Option<String>, |