From 0bc5118ebf944d1754409dc742552ed1b543346a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 10 May 2019 15:06:00 -0700 Subject: basic impl of extid changes --- rust/src/database_models.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'rust/src/database_models.rs') diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index 3ee7552c..60d6922c 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -389,10 +389,7 @@ pub struct ReleaseRevRow { pub pmid: Option, pub pmcid: Option, pub wikidata_qid: Option, - pub isbn13: Option, pub core_id: Option, - pub arxiv_id: Option, - pub jstor_id: Option, pub volume: Option, pub issue: Option, pub pages: Option, @@ -405,8 +402,6 @@ pub struct ReleaseRevRow { pub withdrawn_status: Option, pub withdrawn_date: Option, pub withdrawn_year: Option, - pub mag_id: Option, - pub ark_id: Option, } #[derive(Debug, Associations, AsChangeset, Insertable)] @@ -426,10 +421,7 @@ pub struct ReleaseRevNewRow { pub pmid: Option, pub pmcid: Option, pub wikidata_qid: Option, - pub isbn13: Option, pub core_id: Option, - pub arxiv_id: Option, - pub jstor_id: Option, pub volume: Option, pub issue: Option, pub pages: Option, @@ -442,8 +434,14 @@ pub struct ReleaseRevNewRow { pub withdrawn_status: Option, pub withdrawn_date: Option, pub withdrawn_year: Option, - pub mag_id: Option, - pub ark_id: Option, +} + +#[derive(Debug, Queryable, Associations, AsChangeset, Insertable)] +#[table_name = "release_rev_extid"] +pub struct ReleaseExtidRow { + pub release_rev: Uuid, + pub extid_type: String, + pub value: String, } entity_structs!( -- cgit v1.2.3