summaryrefslogtreecommitdiffstats
path: root/rust/src/database_models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-16 20:55:29 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-16 20:55:29 -0700
commit2c9edb5c394d9fc75cf3be49a157763506e1265c (patch)
treebb6deca3941722ccaaf21bd000bc73c03cbb2f40 /rust/src/database_models.rs
parent3fce9b2ff8a0daa043357facbbd961a231bd3c02 (diff)
downloadfatcat-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.rs6
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>,