aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/database_schema.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-10 21:39:45 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-10 21:39:45 -0800
commitfb80d1dbe88614a53b7fd4e61b08b5e1cd296c7e (patch)
tree192f669a4cd0f2370aff9837954f64936d8cc5d6 /rust/src/database_schema.rs
parent9a83067d04c9648416b92fc8d7b8a542b0b9aa96 (diff)
downloadfatcat-fb80d1dbe88614a53b7fd4e61b08b5e1cd296c7e.tar.gz
fatcat-fb80d1dbe88614a53b7fd4e61b08b5e1cd296c7e.zip
WIP on annotations and changes
Diffstat (limited to 'rust/src/database_schema.rs')
-rw-r--r--rust/src/database_schema.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/rust/src/database_schema.rs b/rust/src/database_schema.rs
index ac5acec8..b82e776f 100644
--- a/rust/src/database_schema.rs
+++ b/rust/src/database_schema.rs
@@ -98,12 +98,25 @@ table! {
id -> Uuid,
editor_id -> Uuid,
created -> Timestamptz,
+ submitted -> Nullable<Timestamptz>,
+ is_accepted -> Bool,
extra_json -> Nullable<Jsonb>,
description -> Nullable<Text>,
}
}
table! {
+ editgroup_annotation (id) {
+ id -> Uuid,
+ editgroup_id -> Uuid,
+ editor_id -> Uuid,
+ created -> Timestamptz,
+ comment_markdown -> Nullable<Text>,
+ extra_json -> Nullable<Jsonb>,
+ }
+}
+
+table! {
editor (id) {
id -> Uuid,
username -> Text,
@@ -406,6 +419,8 @@ joinable!(container_ident -> container_rev (rev_id));
joinable!(creator_edit -> editgroup (editgroup_id));
joinable!(creator_ident -> creator_rev (rev_id));
joinable!(editgroup -> editor (editor_id));
+joinable!(editgroup_annotation -> editgroup (editgroup_id));
+joinable!(editgroup_annotation -> editor (editor_id));
joinable!(file_edit -> editgroup (editgroup_id));
joinable!(file_ident -> file_rev (rev_id));
joinable!(file_rev_release -> file_rev (file_rev));
@@ -447,6 +462,7 @@ allow_tables_to_appear_in_same_query!(
creator_ident,
creator_rev,
editgroup,
+ editgroup_annotation,
editor,
file_edit,
file_ident,