diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-16 20:55:29 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-16 20:55:29 -0700 |
commit | 2c9edb5c394d9fc75cf3be49a157763506e1265c (patch) | |
tree | bb6deca3941722ccaaf21bd000bc73c03cbb2f40 /rust/src/database_models.rs | |
parent | 3fce9b2ff8a0daa043357facbbd961a231bd3c02 (diff) | |
download | fatcat-2c9edb5c394d9fc75cf3be49a157763506e1265c.tar.gz fatcat-2c9edb5c394d9fc75cf3be49a157763506e1265c.zip |
implement simplifications and more GETs
Diffstat (limited to 'rust/src/database_models.rs')
-rw-r--r-- | rust/src/database_models.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index 0995304f..a1f7fc04 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -37,7 +37,6 @@ pub struct ContainerRevRow { pub id: i64, //pub extra_json: Option<serde_json::Value>, pub name: String, - pub parent_ident_id: Option<i64>, pub publisher: Option<String>, pub issn: Option<String>, } @@ -82,10 +81,9 @@ entity_structs!("file_edit", FileEditRow, "file_ident", FileIdentRow); pub struct ReleaseRevRow { pub id: i64, //extra_json: Option<Json>, - pub work_ident_id: Option<Uuid>, + pub work_ident_id: Uuid, pub container_ident_id: Option<Uuid>, - pub title: Option<String>, - pub license: Option<String>, + pub title: String, pub release_type: Option<String>, pub date: Option<String>, pub doi: Option<String>, |