summaryrefslogtreecommitdiffstats
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/database_models.rs8
-rw-r--r--rust/src/database_schema.rs4
2 files changed, 12 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)]
diff --git a/rust/src/database_schema.rs b/rust/src/database_schema.rs
index 46baba59..e0a54233 100644
--- a/rust/src/database_schema.rs
+++ b/rust/src/database_schema.rs
@@ -55,6 +55,9 @@ table! {
publisher -> Nullable<Text>,
issnl -> Nullable<Text>,
wikidata_qid -> Nullable<Text>,
+ issne -> Nullable<Text>,
+ issnp -> Nullable<Text>,
+ publication_status -> Nullable<Text>,
}
}
@@ -218,6 +221,7 @@ table! {
sha1 -> Nullable<Text>,
sha256 -> Nullable<Text>,
extra_json -> Nullable<Jsonb>,
+ mimetype -> Nullable<Text>,
}
}