summaryrefslogtreecommitdiffstats
path: root/rust/src/schema.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-15 14:45:42 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-15 14:45:42 -0700
commitfe77445bd16db003e03b5c44fa02c65b78e6fa02 (patch)
tree7411bbbaecf4c086c97746fa1845dc0169b33438 /rust/src/schema.rs
parent85d469196ff17a3aee7a950ae57d4797938e8f42 (diff)
downloadfatcat-fe77445bd16db003e03b5c44fa02c65b78e6fa02.tar.gz
fatcat-fe77445bd16db003e03b5c44fa02c65b78e6fa02.zip
working db_pool and response
Diffstat (limited to 'rust/src/schema.rs')
-rw-r--r--rust/src/schema.rs68
1 files changed, 0 insertions, 68 deletions
diff --git a/rust/src/schema.rs b/rust/src/schema.rs
deleted file mode 100644
index 7bef7dcd..00000000
--- a/rust/src/schema.rs
+++ /dev/null
@@ -1,68 +0,0 @@
-table! {
- changelog (id) {
- id -> Int8,
- editgroup_id -> Int8,
- timestamp -> Nullable<Timestamp>,
- }
-}
-
-table! {
- creator_edit (id) {
- id -> Int8,
- extra_json -> Nullable<Json>,
- ident_id -> Uuid,
- rev_id -> Nullable<Int8>,
- redirect_id -> Nullable<Uuid>,
- editgroup_id -> Int8,
- }
-}
-
-table! {
- creator_ident (id) {
- id -> Uuid,
- is_live -> Bool,
- rev_id -> Nullable<Int8>,
- redirect_id -> Nullable<Uuid>,
- }
-}
-
-table! {
- creator_rev (id) {
- id -> Int8,
- extra_json -> Nullable<Json>,
- name -> Nullable<Text>,
- orcid -> Nullable<Text>,
- }
-}
-
-table! {
- editgroup (id) {
- id -> Int8,
- extra_json -> Nullable<Json>,
- editor_id -> Int8,
- description -> Nullable<Text>,
- }
-}
-
-table! {
- editor (id) {
- id -> Int8,
- username -> Text,
- is_admin -> Bool,
- active_editgroup_id -> Nullable<Int8>,
- }
-}
-
-joinable!(changelog -> editgroup (editgroup_id));
-joinable!(creator_edit -> creator_rev (rev_id));
-joinable!(creator_edit -> editgroup (editgroup_id));
-joinable!(creator_ident -> creator_rev (rev_id));
-
-allow_tables_to_appear_in_same_query!(
- changelog,
- creator_edit,
- creator_ident,
- creator_rev,
- editgroup,
- editor,
-);