aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/database_models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-10 15:06:00 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-10 15:06:00 -0700
commit0bc5118ebf944d1754409dc742552ed1b543346a (patch)
treed81327741ee0f351a759617c1110abfde996d8a8 /rust/src/database_models.rs
parent781b0d792c80f3394227a8e60043ff1cbf753ff4 (diff)
downloadfatcat-0bc5118ebf944d1754409dc742552ed1b543346a.tar.gz
fatcat-0bc5118ebf944d1754409dc742552ed1b543346a.zip
basic impl of extid changes
Diffstat (limited to 'rust/src/database_models.rs')
-rw-r--r--rust/src/database_models.rs18
1 files changed, 8 insertions, 10 deletions
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<String>,
pub pmcid: Option<String>,
pub wikidata_qid: Option<String>,
- pub isbn13: Option<String>,
pub core_id: Option<String>,
- pub arxiv_id: Option<String>,
- pub jstor_id: Option<String>,
pub volume: Option<String>,
pub issue: Option<String>,
pub pages: Option<String>,
@@ -405,8 +402,6 @@ pub struct ReleaseRevRow {
pub withdrawn_status: Option<String>,
pub withdrawn_date: Option<chrono::NaiveDate>,
pub withdrawn_year: Option<i64>,
- pub mag_id: Option<String>,
- pub ark_id: Option<String>,
}
#[derive(Debug, Associations, AsChangeset, Insertable)]
@@ -426,10 +421,7 @@ pub struct ReleaseRevNewRow {
pub pmid: Option<String>,
pub pmcid: Option<String>,
pub wikidata_qid: Option<String>,
- pub isbn13: Option<String>,
pub core_id: Option<String>,
- pub arxiv_id: Option<String>,
- pub jstor_id: Option<String>,
pub volume: Option<String>,
pub issue: Option<String>,
pub pages: Option<String>,
@@ -442,8 +434,14 @@ pub struct ReleaseRevNewRow {
pub withdrawn_status: Option<String>,
pub withdrawn_date: Option<chrono::NaiveDate>,
pub withdrawn_year: Option<i64>,
- pub mag_id: Option<String>,
- pub ark_id: Option<String>,
+}
+
+#[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!(