table! { abstracts (sha1) { sha1 -> Bpchar, content -> Text, } } table! { changelog (id) { id -> Int8, editgroup_id -> Uuid, timestamp -> Timestamp, } } table! { container_edit (id) { id -> Int8, editgroup_id -> Uuid, updated -> Timestamp, ident_id -> Uuid, rev_id -> Nullable, redirect_id -> Nullable, prev_rev -> Nullable, extra_json -> Nullable, } } table! { container_ident (id) { id -> Uuid, is_live -> Bool, rev_id -> Nullable, redirect_id -> Nullable, } } table! { container_rev (id) { id -> Uuid, extra_json -> Nullable, name -> Text, publisher -> Nullable, issnl -> Nullable, wikidata_qid -> Nullable, abbrev -> Nullable, coden -> Nullable, } } table! { creator_edit (id) { id -> Int8, editgroup_id -> Uuid, updated -> Timestamp, ident_id -> Uuid, rev_id -> Nullable, redirect_id -> Nullable, prev_rev -> Nullable, extra_json -> Nullable, } } table! { creator_ident (id) { id -> Uuid, is_live -> Bool, rev_id -> Nullable, redirect_id -> Nullable, } } table! { creator_rev (id) { id -> Uuid, extra_json -> Nullable, display_name -> Text, given_name -> Nullable, surname -> Nullable, orcid -> Nullable, wikidata_qid -> Nullable, } } table! { editgroup (id) { id -> Uuid, editor_id -> Uuid, created -> Timestamp, extra_json -> Nullable, description -> Nullable, } } table! { editor (id) { id -> Uuid, username -> Text, is_admin -> Bool, registered -> Timestamp, active_editgroup_id -> Nullable, } } table! { file_edit (id) { id -> Int8, editgroup_id -> Uuid, updated -> Timestamp, ident_id -> Uuid, rev_id -> Nullable, redirect_id -> Nullable, prev_rev -> Nullable, extra_json -> Nullable, } } table! { file_ident (id) { id -> Uuid, is_live -> Bool, rev_id -> Nullable, redirect_id -> Nullable, } } table! { file_release (file_rev, target_release_ident_id) { file_rev -> Uuid, target_release_ident_id -> Uuid, } } table! { file_rev (id) { id -> Uuid, extra_json -> Nullable, size -> Nullable, sha1 -> Nullable, sha256 -> Nullable, md5 -> Nullable, mimetype -> Nullable, } } table! { file_rev_url (id) { id -> Int8, file_rev -> Uuid, rel -> Text, url -> Text, } } table! { release_contrib (id) { id -> Int8, release_rev -> Uuid, creator_ident_id -> Nullable, raw_name -> Nullable, role_val -> Nullable, index_val -> Nullable, extra_json -> Nullable, } } table! { release_edit (id) { id -> Int8, editgroup_id -> Uuid, updated -> Timestamp, ident_id -> Uuid, rev_id -> Nullable, redirect_id -> Nullable, prev_rev -> Nullable, extra_json -> Nullable, } } table! { release_ident (id) { id -> Uuid, is_live -> Bool, rev_id -> Nullable, redirect_id -> Nullable, } } table! { release_ref (id) { id -> Int8, release_rev -> Uuid, target_release_ident_id -> Nullable, index_val -> Nullable, key -> Nullable, extra_json -> Nullable, container_title -> Nullable, year -> Nullable, title -> Nullable, locator -> Nullable, } } table! { release_rev (id) { id -> Uuid, extra_json -> Nullable, work_ident_id -> Uuid, container_ident_id -> Nullable, title -> Text, release_type -> Nullable, release_status -> Nullable, release_date -> Nullable, doi -> Nullable, pmid -> Nullable, pmcid -> Nullable, wikidata_qid -> Nullable, isbn13 -> Nullable, core_id -> Nullable, volume -> Nullable, issue -> Nullable, pages -> Nullable, publisher -> Nullable, language -> Nullable, } } table! { release_rev_abstract (id) { id -> Int8, release_rev -> Uuid, abstract_sha1 -> Bpchar, mimetype -> Nullable, lang -> Nullable, } } table! { work_edit (id) { id -> Int8, editgroup_id -> Uuid, updated -> Timestamp, ident_id -> Uuid, rev_id -> Nullable, redirect_id -> Nullable, prev_rev -> Nullable, extra_json -> Nullable, } } table! { work_ident (id) { id -> Uuid, is_live -> Bool, rev_id -> Nullable, redirect_id -> Nullable, } } table! { work_rev (id) { id -> Uuid, extra_json -> Nullable, } } joinable!(changelog -> editgroup (editgroup_id)); joinable!(container_edit -> editgroup (editgroup_id)); joinable!(container_ident -> container_rev (rev_id)); joinable!(creator_edit -> editgroup (editgroup_id)); joinable!(creator_ident -> creator_rev (rev_id)); joinable!(file_edit -> editgroup (editgroup_id)); joinable!(file_ident -> file_rev (rev_id)); joinable!(file_release -> file_rev (file_rev)); joinable!(file_release -> release_ident (target_release_ident_id)); joinable!(file_rev_url -> file_rev (file_rev)); joinable!(release_contrib -> creator_ident (creator_ident_id)); joinable!(release_contrib -> release_rev (release_rev)); joinable!(release_edit -> editgroup (editgroup_id)); joinable!(release_ident -> release_rev (rev_id)); joinable!(release_ref -> release_ident (target_release_ident_id)); joinable!(release_ref -> release_rev (release_rev)); joinable!(release_rev -> container_ident (container_ident_id)); joinable!(release_rev -> work_ident (work_ident_id)); joinable!(release_rev_abstract -> abstracts (abstract_sha1)); joinable!(release_rev_abstract -> release_rev (release_rev)); joinable!(work_edit -> editgroup (editgroup_id)); joinable!(work_ident -> work_rev (rev_id)); allow_tables_to_appear_in_same_query!( abstracts, changelog, container_edit, container_ident, container_rev, creator_edit, creator_ident, creator_rev, editgroup, editor, file_edit, file_ident, file_release, file_rev, file_rev_url, release_contrib, release_edit, release_ident, release_ref, release_rev, release_rev_abstract, work_edit, work_ident, work_rev, );