From 55f8a495354d233f7a68128b2f3c21dbe7395427 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 26 May 2018 17:08:21 -0700 Subject: tweak schema (api and sql) --- rust/src/database_models.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'rust/src/database_models.rs') diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index b27bca3f..9913b7e2 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -75,7 +75,9 @@ pub struct ContainerRevRow { pub extra_json: Option, pub name: String, pub publisher: Option, - pub issn: Option, + pub issnl: Option, + pub abbrev: Option, + pub coden: Option, } entity_structs!( @@ -90,7 +92,7 @@ entity_structs!( pub struct CreatorRevRow { pub id: i64, pub extra_json: Option, - pub name: String, + pub full_name: String, pub orcid: Option, } @@ -108,6 +110,7 @@ pub struct FileRevRow { pub extra_json: Option, pub size: Option, pub sha1: Option, + pub md5: Option, pub url: Option, } @@ -124,9 +127,11 @@ pub struct ReleaseRevRow { pub release_type: Option, pub date: Option, pub doi: Option, + pub isbn13: Option, pub volume: Option, pub pages: Option, pub issue: Option, + pub publisher: Option, } entity_structs!( @@ -153,9 +158,9 @@ pub struct ReleaseContribRow { pub id: i64, pub release_rev: i64, pub creator_ident_id: Option, - pub stub: Option, + pub role: Option, pub index: Option, - pub contrib_type: Option, + pub stub: Option, } #[derive(Debug, Insertable)] @@ -163,9 +168,9 @@ pub struct ReleaseContribRow { pub struct ReleaseContribNewRow { pub release_rev: i64, pub creator_ident_id: Option, - pub stub: Option, + pub role: Option, pub index: Option, - pub contrib_type: Option, + pub stub: Option, } #[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)] -- cgit v1.2.3