summaryrefslogtreecommitdiffstats
path: root/rust/src/database_models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-10-12 19:53:44 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-10-13 16:21:30 -0700
commit75b5cc8fbc17c98c17401c5932ec16f48c6e2f54 (patch)
tree91e150972e972847384c52a1cf35682587b61a88 /rust/src/database_models.rs
parentc9ff89b5f3660a9b9ec094141327f006d1633438 (diff)
downloadfatcat-75b5cc8fbc17c98c17401c5932ec16f48c6e2f54.tar.gz
fatcat-75b5cc8fbc17c98c17401c5932ec16f48c6e2f54.zip
rust: implement recent SQL changes
Diffstat (limited to 'rust/src/database_models.rs')
-rw-r--r--rust/src/database_models.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs
index e4bca2b0..76c8675d 100644
--- a/rust/src/database_models.rs
+++ b/rust/src/database_models.rs
@@ -133,6 +133,9 @@ pub struct ContainerRevRow {
pub publisher: Option<String>,
pub issnl: Option<String>,
pub wikidata_qid: Option<String>,
+ pub issne: Option<String>,
+ pub issnp: Option<String>,
+ pub publication_status: Option<String>,
}
#[derive(Debug, Associations, AsChangeset, Insertable)]
@@ -144,6 +147,9 @@ pub struct ContainerRevNewRow {
pub publisher: Option<String>,
pub issnl: Option<String>,
pub wikidata_qid: Option<String>,
+ pub issne: Option<String>,
+ pub issnp: Option<String>,
+ pub publication_status: Option<String>,
}
entity_structs!(
@@ -247,6 +253,7 @@ pub struct FilesetRevFileRow {
pub sha1: Option<String>,
pub sha256: Option<String>,
pub extra_json: Option<serde_json::Value>,
+ pub mimetype: Option<String>,
}
#[derive(Debug, Queryable, Associations, AsChangeset, Insertable)]
@@ -259,6 +266,7 @@ pub struct FilesetRevFileNewRow {
pub sha1: Option<String>,
pub sha256: Option<String>,
pub extra_json: Option<serde_json::Value>,
+ pub mimetype: Option<String>,
}
#[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)]