From fb80d1dbe88614a53b7fd4e61b08b5e1cd296c7e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 10 Jan 2019 21:39:45 -0800 Subject: WIP on annotations and changes --- rust/src/database_schema.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'rust/src/database_schema.rs') 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,11 +98,24 @@ table! { id -> Uuid, editor_id -> Uuid, created -> Timestamptz, + submitted -> Nullable, + is_accepted -> Bool, extra_json -> Nullable, description -> Nullable, } } +table! { + editgroup_annotation (id) { + id -> Uuid, + editgroup_id -> Uuid, + editor_id -> Uuid, + created -> Timestamptz, + comment_markdown -> Nullable, + extra_json -> Nullable, + } +} + table! { editor (id) { id -> Uuid, @@ -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, -- cgit v1.2.3