Add calculated fields

This commit is contained in:
Finn Stutzenstein 2020-08-11 07:46:56 +02:00
parent 27725a7694
commit 37d3591d69
No known key found for this signature in database
GPG Key ID: 9042F605C6324654
2 changed files with 14 additions and 5 deletions

View File

@ -10,6 +10,7 @@
"committee_ids": [1],
"role_ids": [1],
"superadmin_role_id": 1,
"resource_ids": []
}],
"user": [
@ -159,9 +160,9 @@
"id": 1,
"name": "Superadmin role",
"permissions": [],
"is_superadmin_role": true,
"organisation_id": 1,
"superadmin_role_for_organisation_id": 1,
"user_ids": [1]
}],
"resource": [],
@ -318,6 +319,7 @@
"present_user_ids": [1],
"temorary_user_ids": [],
"guest_ids": [3],
"user_ids": [1, 2, 3],
"reference_projector_id": 2,
"default_group_id": 1,
@ -1193,6 +1195,7 @@
"sort_child_ids": [],
"origin_id": null,
"derived_motion_ids": [],
"forwarding_tree_motion_ids": [],
"state_id": 1,
"recommendation_id": null,
"category_id": 2,
@ -1231,9 +1234,10 @@
"lead_motion_id": 1,
"amendment_ids": [],
"sort_parent_id": null,
"sort_chldren_ids": [],
"sort_child_ids": [],
"origin_id": null,
"derived_motion_ids": [],
"forwarding_tree_motion_ids": [],
"state_id": 1,
"recommendation_id": null,
"category_id": 1,
@ -1272,9 +1276,10 @@
"lead_motion_id": null,
"amendment_ids": [],
"sort_parent_id": null,
"sort_chldren_ids": [],
"sort_child_ids": [],
"origin_id": null,
"derived_motion_ids": [],
"forwarding_tree_motion_ids": [],
"state_id": 1,
"recommendation_id": null,
"category_id": 2,
@ -1313,9 +1318,10 @@
"lead_motion_id": null,
"amendment_ids": [],
"sort_parent_id": null,
"sort_chldren_ids": [],
"sort_child_ids": [],
"origin_id": null,
"derived_motion_ids": [],
"forwarding_tree_motion_ids": [],
"state_id": 6,
"recommendation_id": null,
"category_id": null,

View File

@ -37,6 +37,7 @@ Interface organisation {
committee_ids: (committee/organisation_id)[];
role_ids: (role/organisation_id)[];
superadmin_role_id: role/superadmin_role_for_organisation_id;
resource_ids: (resource/organisation_id)[];
}
@ -100,9 +101,9 @@ Interface role {
id: number;
name: string;
permissions: string[];
is_superadmin_role: boolean;
organisation_id: organisation/role_ids;
superadmin_role_for_organisation_id: organisation/superadmin_role_id;
user_ids: (user/role_id)[];
}
@ -306,6 +307,7 @@ Interface meeting {
present_user_ids: (user/is_present_in_meeting_ids)[];
temporary_user_ids: (user/meeting_id)[];
guest_ids: (user/guest_meeting_ids)[];
user_ids: (Id)[]; // Calculated: All ids from temporary_user_ids, guest_ids and all users assigned to groups.
reference_projector_id: projector/used_as_reference_projector_meeting_id;
default_group_id: group/default_group_for_meeting_id;
@ -425,6 +427,7 @@ Interface motion {
sort_child_ids: (motion/parent_id)[];
origin_id: motion/derived_motion_ids; // Note: The related motions may not be in the same meeting
derived_motion_ids: (motion/origin_id)[]; // Note: The related motions may not be in the same meeting
forwarding_tree_motion_ids: (Id)[]; // Calculated: All children (derived_motion_ids), grand children, ... and all parents (origin_id).
state_id: motion_state/motion_ids;
recommendation_id: motion_state/motion_recommendation_ids;
category_id: motion_category/motion_ids;