From c187700af2d4f45f4163a8e09af0aeebd1a0d7b1 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Mon, 20 Jan 2020 12:36:24 +0100 Subject: [PATCH] changes --- docs/models.txt | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/models.txt b/docs/models.txt index f85f38fb3..6632260dc 100644 --- a/docs/models.txt +++ b/docs/models.txt @@ -158,6 +158,7 @@ Interface user { is_present_in_meeting_ids: meeting[]; meeting_id: meeting; // Temporary users + guest_meeting_ids: meeting[]; // Links to meeting/guest_ids // All foreign keys are meeting-specific: // - Keys are smaller (Space is in O(n^2) for n keys @@ -258,8 +259,8 @@ Interface motion { parent_id: motion; children_ids: motion[]; - origin_id: motion; - derived_motion_ids: motion[]; + origin_id: motion; // Note: The related motions may not be in the same meeting + derived_motion_ids: motion[]; // Note: The related motions may not be in the same meeting state_id: motion_state; workflow_id: motion_workflow; recommendation_id: motion_state; @@ -504,7 +505,7 @@ Interface meeting { // TODO: @emanuel: Are they meeting-specific, organsation-wide or should // both have custom translation? - // Is this right here in a meeting? + // TODO: @emanuel Is this right here in a meeting? users_sort_by: string; users_enable_presence_view: boolean; @@ -591,8 +592,13 @@ Interface meeting { // if a user is assigned to at least one group. This "query" must be checked, // if it can be performed. - present_user_ids: user[]; // Link to user/is_present_in_meeting_ids - resource_ids: resource[]; + // Other relations + resource_ids: resource[]; // Links to resource/meeting_id + committee_id: committee; // Links to committee/meeting_ids + default_meeting_for_committee_id: committee; // Links to committee/default_meeting_id + present_user_ids: user[]; // Links to user/is_present_in_meeting_ids + guest_ids: user[]; // Links to users/guest_meeting_ids + temorary_user_ids: user[]; // Links to user/meeting_id } Interface committee { id: number; @@ -600,6 +606,7 @@ Interface committee { description: string; // TODO: @emanuel Or HTML? Or not needed (-> UI decision) meeting_ids: meeting[]; + default_meting_id: meeting; member_ids: user[]; manager_ids: user[]; forward_to_committee_ids: committee[];