diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-06-04 00:19:36 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-06-04 00:19:36 -0700 |
commit | 0ec7c973417f5d120db80d1c1dd3e329711a1ca4 (patch) | |
tree | 194c0ca49f13db09cb07f0a640edcd6430c61587 /rust/src/database_schema.rs | |
parent | 09c8fffe9fbf94a3004b5dda5dd9e50496591ad6 (diff) | |
download | fatcat-0ec7c973417f5d120db80d1c1dd3e329711a1ca4.tar.gz fatcat-0ec7c973417f5d120db80d1c1dd3e329711a1ca4.zip |
update rust/api for schema extensions
Diffstat (limited to 'rust/src/database_schema.rs')
-rw-r--r-- | rust/src/database_schema.rs | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/rust/src/database_schema.rs b/rust/src/database_schema.rs index 2541bcd8..d60bb6ee 100644 --- a/rust/src/database_schema.rs +++ b/rust/src/database_schema.rs @@ -62,7 +62,9 @@ table! { creator_rev (id) { id -> Int8, extra_json -> Nullable<Json>, - full_name -> Text, + display_name -> Text, + given_name -> Nullable<Text>, + surname -> Nullable<Text>, orcid -> Nullable<Text>, } } @@ -118,8 +120,10 @@ table! { extra_json -> Nullable<Json>, size -> Nullable<Int8>, sha1 -> Nullable<Text>, + sha256 -> Nullable<Text>, md5 -> Nullable<Text>, url -> Nullable<Text>, + mimetype -> Nullable<Text>, } } @@ -130,7 +134,7 @@ table! { creator_ident_id -> Nullable<Uuid>, role -> Nullable<Text>, index -> Nullable<Int8>, - stub -> Nullable<Text>, + raw -> Nullable<Text>, } } @@ -160,7 +164,12 @@ table! { release_rev -> Int8, target_release_ident_id -> Nullable<Uuid>, index -> Nullable<Int8>, - stub -> Nullable<Text>, + key -> Nullable<Text>, + raw -> Nullable<Text>, + container_title -> Nullable<Text>, + year -> Nullable<Int8>, + title -> Nullable<Text>, + locator -> Nullable<Text>, } } @@ -172,13 +181,15 @@ table! { container_ident_id -> Nullable<Uuid>, title -> Text, release_type -> Nullable<Text>, - date -> Nullable<Date>, + release_status -> Nullable<Text>, + release_date -> Nullable<Date>, doi -> Nullable<Text>, isbn13 -> Nullable<Text>, volume -> Nullable<Text>, pages -> Nullable<Text>, issue -> Nullable<Text>, publisher -> Nullable<Text>, + language -> Nullable<Text>, } } |