From 81e2ceb404c31921fb80dd19a01b7e7e5ce21665 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Thu, 27 Aug 2026 16:10:29 +0200 Subject: [PATCH] update meta --- datastore/dsfetch/fields_generated.go | 114 +- datastore/dskey/gen_collection_fields.go | 1749 ++++++++++---------- datastore/dsmodels/models_generated.go | 358 ++-- datastore/field_def.go | 13 +- datastore/pgtest/sql/schema_relational.sql | 149 +- meta | 2 +- metagen/field_def.go | 90 +- 7 files changed, 1308 insertions(+), 1167 deletions(-) diff --git a/datastore/dsfetch/fields_generated.go b/datastore/dsfetch/fields_generated.go index cba0a413b..6370f0051 100644 --- a/datastore/dsfetch/fields_generated.go +++ b/datastore/dsfetch/fields_generated.go @@ -1644,15 +1644,6 @@ func (r *Fetch) HistoryEntry_PositionID(historyEntryID int) *ValueInt { return &ValueInt{fetch: r, key: key, required: true} } -func (r *Fetch) HistoryEntry_StructuredInformation(historyEntryID int) *ValueJSON { - key, err := dskey.FromParts("history_entry", historyEntryID, "structured_information") - if err != nil { - return &ValueJSON{err: err} - } - - return &ValueJSON{fetch: r, key: key} -} - func (r *Fetch) HistoryPosition_EntryIDs(historyPositionID int) *ValueIntSlice { key, err := dskey.FromParts("history_position", historyPositionID, "entry_ids") if err != nil { @@ -2337,15 +2328,6 @@ func (r *Fetch) MeetingUser_Comment(meetingUserID int) *ValueString { return &ValueString{fetch: r, key: key} } -func (r *Fetch) MeetingUser_EntitledAtPollIDs(meetingUserID int) *ValueIntSlice { - key, err := dskey.FromParts("meeting_user", meetingUserID, "entitled_at_poll_ids") - if err != nil { - return &ValueIntSlice{err: err} - } - - return &ValueIntSlice{fetch: r, key: key} -} - func (r *Fetch) MeetingUser_GroupIDs(meetingUserID int) *ValueIntSlice { key, err := dskey.FromParts("meeting_user", meetingUserID, "group_ids") if err != nil { @@ -2355,15 +2337,6 @@ func (r *Fetch) MeetingUser_GroupIDs(meetingUserID int) *ValueIntSlice { return &ValueIntSlice{fetch: r, key: key, required: true} } -func (r *Fetch) MeetingUser_HistoryEntryIDs(meetingUserID int) *ValueIntSlice { - key, err := dskey.FromParts("meeting_user", meetingUserID, "history_entry_ids") - if err != nil { - return &ValueIntSlice{err: err} - } - - return &ValueIntSlice{fetch: r, key: key} -} - func (r *Fetch) MeetingUser_ID(meetingUserID int) *ValueInt { key, err := dskey.FromParts("meeting_user", meetingUserID, "id") if err != nil { @@ -2445,6 +2418,15 @@ func (r *Fetch) MeetingUser_PersonalNoteIDs(meetingUserID int) *ValueIntSlice { return &ValueIntSlice{fetch: r, key: key} } +func (r *Fetch) MeetingUser_PollEntitledUserIDs(meetingUserID int) *ValueIntSlice { + key, err := dskey.FromParts("meeting_user", meetingUserID, "poll_entitled_user_ids") + if err != nil { + return &ValueIntSlice{err: err} + } + + return &ValueIntSlice{fetch: r, key: key} +} + func (r *Fetch) MeetingUser_PollOptionIDs(meetingUserID int) *ValueIntSlice { key, err := dskey.FromParts("meeting_user", meetingUserID, "poll_option_ids") if err != nil { @@ -6450,13 +6432,13 @@ func (r *Fetch) PointOfOrderCategory_Text(pointOfOrderCategoryID int) *ValueStri return &ValueString{fetch: r, key: key, required: true} } -func (r *Fetch) PollBallotUser_ActingMeetingUserID(pollBallotUserID int) *ValueInt { +func (r *Fetch) PollBallotUser_ActingMeetingUserID(pollBallotUserID int) *ValueMaybeInt { key, err := dskey.FromParts("poll_ballot_user", pollBallotUserID, "acting_meeting_user_id") if err != nil { - return &ValueInt{err: err} + return &ValueMaybeInt{err: err} } - return &ValueInt{fetch: r, key: key, required: true} + return &ValueMaybeInt{fetch: r, key: key} } func (r *Fetch) PollBallotUser_ID(pollBallotUserID int) *ValueInt { @@ -6486,13 +6468,13 @@ func (r *Fetch) PollBallotUser_PollID(pollBallotUserID int) *ValueInt { return &ValueInt{fetch: r, key: key, required: true} } -func (r *Fetch) PollBallotUser_RepresentedMeetingUserID(pollBallotUserID int) *ValueInt { +func (r *Fetch) PollBallotUser_RepresentedMeetingUserID(pollBallotUserID int) *ValueMaybeInt { key, err := dskey.FromParts("poll_ballot_user", pollBallotUserID, "represented_meeting_user_id") if err != nil { - return &ValueInt{err: err} + return &ValueMaybeInt{err: err} } - return &ValueInt{fetch: r, key: key, required: true} + return &ValueMaybeInt{fetch: r, key: key} } func (r *Fetch) PollBallot_ID(pollBallotID int) *ValueInt { @@ -6855,8 +6837,8 @@ func (r *Fetch) PollConfigStvScottish_Posts(pollConfigStvScottishID int) *ValueI return &ValueInt{fetch: r, key: key} } -func (r *Fetch) PollOption_ID(pollOptionID int) *ValueInt { - key, err := dskey.FromParts("poll_option", pollOptionID, "id") +func (r *Fetch) PollEntitledUser_ID(pollEntitledUserID int) *ValueInt { + key, err := dskey.FromParts("poll_entitled_user", pollEntitledUserID, "id") if err != nil { return &ValueInt{err: err} } @@ -6864,8 +6846,8 @@ func (r *Fetch) PollOption_ID(pollOptionID int) *ValueInt { return &ValueInt{fetch: r, key: key, required: true} } -func (r *Fetch) PollOption_MeetingUserID(pollOptionID int) *ValueMaybeInt { - key, err := dskey.FromParts("poll_option", pollOptionID, "meeting_user_id") +func (r *Fetch) PollEntitledUser_MeetingUserID(pollEntitledUserID int) *ValueMaybeInt { + key, err := dskey.FromParts("poll_entitled_user", pollEntitledUserID, "meeting_user_id") if err != nil { return &ValueMaybeInt{err: err} } @@ -6873,6 +6855,33 @@ func (r *Fetch) PollOption_MeetingUserID(pollOptionID int) *ValueMaybeInt { return &ValueMaybeInt{fetch: r, key: key} } +func (r *Fetch) PollEntitledUser_PollID(pollEntitledUserID int) *ValueInt { + key, err := dskey.FromParts("poll_entitled_user", pollEntitledUserID, "poll_id") + if err != nil { + return &ValueInt{err: err} + } + + return &ValueInt{fetch: r, key: key, required: true} +} + +func (r *Fetch) PollOption_ContentObjectID(pollOptionID int) *ValueMaybeString { + key, err := dskey.FromParts("poll_option", pollOptionID, "content_object_id") + if err != nil { + return &ValueMaybeString{err: err} + } + + return &ValueMaybeString{fetch: r, key: key} +} + +func (r *Fetch) PollOption_ID(pollOptionID int) *ValueInt { + key, err := dskey.FromParts("poll_option", pollOptionID, "id") + if err != nil { + return &ValueInt{err: err} + } + + return &ValueInt{fetch: r, key: key, required: true} +} + func (r *Fetch) PollOption_PollID(pollOptionID int) *ValueInt { key, err := dskey.FromParts("poll_option", pollOptionID, "poll_id") if err != nil { @@ -6972,17 +6981,8 @@ func (r *Fetch) Poll_EntitledGroupIDs(pollID int) *ValueIntSlice { return &ValueIntSlice{fetch: r, key: key} } -func (r *Fetch) Poll_EntitledMeetingUserIDs(pollID int) *ValueIntSlice { - key, err := dskey.FromParts("poll", pollID, "entitled_meeting_user_ids") - if err != nil { - return &ValueIntSlice{err: err} - } - - return &ValueIntSlice{fetch: r, key: key} -} - -func (r *Fetch) Poll_HistoryEntryIDs(pollID int) *ValueIntSlice { - key, err := dskey.FromParts("poll", pollID, "history_entry_ids") +func (r *Fetch) Poll_EntitledUserIDs(pollID int) *ValueIntSlice { + key, err := dskey.FromParts("poll", pollID, "entitled_user_ids") if err != nil { return &ValueIntSlice{err: err} } @@ -8466,6 +8466,15 @@ func (r *Fetch) Topic_AttachmentMeetingMediafileIDs(topicID int) *ValueIntSlice return &ValueIntSlice{fetch: r, key: key} } +func (r *Fetch) Topic_HistoryEntryIDs(topicID int) *ValueIntSlice { + key, err := dskey.FromParts("topic", topicID, "history_entry_ids") + if err != nil { + return &ValueIntSlice{err: err} + } + + return &ValueIntSlice{fetch: r, key: key} +} + func (r *Fetch) Topic_ID(topicID int) *ValueInt { key, err := dskey.FromParts("topic", topicID, "id") if err != nil { @@ -8772,6 +8781,15 @@ func (r *Fetch) User_Password(userID int) *ValueString { return &ValueString{fetch: r, key: key} } +func (r *Fetch) User_PollOptionIDs(userID int) *ValueIntSlice { + key, err := dskey.FromParts("user", userID, "poll_option_ids") + if err != nil { + return &ValueIntSlice{err: err} + } + + return &ValueIntSlice{fetch: r, key: key} +} + func (r *Fetch) User_Pronoun(userID int) *ValueString { key, err := dskey.FromParts("user", userID, "pronoun") if err != nil { diff --git a/datastore/dskey/gen_collection_fields.go b/datastore/dskey/gen_collection_fields.go index 32e18d60f..3be3621a4 100644 --- a/datastore/dskey/gen_collection_fields.go +++ b/datastore/dskey/gen_collection_fields.go @@ -119,7 +119,6 @@ var collectionFields = [...]collectionField{ {"history_entry", "model_id"}, {"history_entry", "original_model_id"}, {"history_entry", "position_id"}, - {"history_entry", "structured_information"}, {"history_position", "A"}, {"history_position", "entry_ids"}, {"history_position", "id"}, @@ -441,9 +440,7 @@ var collectionFields = [...]collectionField{ {"meeting_user", "assignment_candidate_ids"}, {"meeting_user", "chat_message_ids"}, {"meeting_user", "comment"}, - {"meeting_user", "entitled_at_poll_ids"}, {"meeting_user", "group_ids"}, - {"meeting_user", "history_entry_ids"}, {"meeting_user", "id"}, {"meeting_user", "locked_out"}, {"meeting_user", "meeting_id"}, @@ -453,6 +450,7 @@ var collectionFields = [...]collectionField{ {"meeting_user", "motion_working_group_speaker_ids"}, {"meeting_user", "number"}, {"meeting_user", "personal_note_ids"}, + {"meeting_user", "poll_entitled_user_ids"}, {"meeting_user", "poll_option_ids"}, {"meeting_user", "represented_ballot_ids"}, {"meeting_user", "speaker_ids"}, @@ -704,8 +702,7 @@ var collectionFields = [...]collectionField{ {"poll", "config_id"}, {"poll", "content_object_id"}, {"poll", "entitled_group_ids"}, - {"poll", "entitled_meeting_user_ids"}, - {"poll", "history_entry_ids"}, + {"poll", "entitled_user_ids"}, {"poll", "id"}, {"poll", "live_voting_enabled"}, {"poll", "meeting_id"}, @@ -769,9 +766,13 @@ var collectionFields = [...]collectionField{ {"poll_config_stv_scottish", "id"}, {"poll_config_stv_scottish", "poll_id"}, {"poll_config_stv_scottish", "posts"}, + {"poll_entitled_user", "A"}, + {"poll_entitled_user", "id"}, + {"poll_entitled_user", "meeting_user_id"}, + {"poll_entitled_user", "poll_id"}, {"poll_option", "A"}, + {"poll_option", "content_object_id"}, {"poll_option", "id"}, - {"poll_option", "meeting_user_id"}, {"poll_option", "poll_id"}, {"poll_option", "text"}, {"poll_option", "weight"}, @@ -938,6 +939,7 @@ var collectionFields = [...]collectionField{ {"topic", "A"}, {"topic", "agenda_item_id"}, {"topic", "attachment_meeting_mediafile_ids"}, + {"topic", "history_entry_ids"}, {"topic", "id"}, {"topic", "list_of_speakers_id"}, {"topic", "meeting_id"}, @@ -979,6 +981,7 @@ var collectionFields = [...]collectionField{ {"user", "organization_id"}, {"user", "organization_management_level"}, {"user", "password"}, + {"user", "poll_option_ids"}, {"user", "pronoun"}, {"user", "saml_id"}, {"user", "title"}, @@ -1219,1734 +1222,1740 @@ func collectionFieldToID(cf string) int { return 115 case "history_entry/position_id": return 116 - case "history_entry/structured_information": - return 117 case "history_position/A": - return 118 + return 117 case "history_position/entry_ids": - return 119 + return 118 case "history_position/id": - return 120 + return 119 case "history_position/original_user_id": - return 121 + return 120 case "history_position/timestamp": - return 122 + return 121 case "history_position/user_id": - return 123 + return 122 case "import_preview/A": - return 124 + return 123 case "import_preview/created": - return 125 + return 124 case "import_preview/id": - return 126 + return 125 case "import_preview/name": - return 127 + return 126 case "import_preview/result": - return 128 + return 127 case "import_preview/state": - return 129 + return 128 case "list_of_speakers/A": - return 130 + return 129 case "list_of_speakers/B": - return 131 + return 130 case "list_of_speakers/closed": - return 132 + return 131 case "list_of_speakers/content_object_id": - return 133 + return 132 case "list_of_speakers/id": - return 134 + return 133 case "list_of_speakers/meeting_id": - return 135 + return 134 case "list_of_speakers/moderator_notes": - return 136 + return 135 case "list_of_speakers/projection_ids": - return 137 + return 136 case "list_of_speakers/sequential_number": - return 138 + return 137 case "list_of_speakers/speaker_ids": - return 139 + return 138 case "list_of_speakers/structure_level_list_of_speakers_ids": - return 140 + return 139 case "mediafile/A": - return 141 + return 140 case "mediafile/child_ids": - return 142 + return 141 case "mediafile/create_timestamp": - return 143 + return 142 case "mediafile/filename": - return 144 + return 143 case "mediafile/filesize": - return 145 + return 144 case "mediafile/id": - return 146 + return 145 case "mediafile/is_directory": - return 147 + return 146 case "mediafile/meeting_mediafile_ids": - return 148 + return 147 case "mediafile/mimetype": - return 149 + return 148 case "mediafile/owner_id": - return 150 + return 149 case "mediafile/parent_id": - return 151 + return 150 case "mediafile/pdf_information": - return 152 + return 151 case "mediafile/published_to_meetings_in_organization_id": - return 153 + return 152 case "mediafile/title": - return 154 + return 153 case "mediafile/token": - return 155 + return 154 case "meeting/A": - return 156 + return 155 case "meeting/B": - return 157 + return 156 case "meeting/C": - return 158 + return 157 case "meeting/E": - return 159 + return 158 case "meeting/F": - return 160 + return 159 case "meeting/admin_group_id": - return 161 + return 160 case "meeting/agenda_enable_numbering": - return 162 + return 161 case "meeting/agenda_item_creation": - return 163 + return 162 case "meeting/agenda_item_ids": - return 164 + return 163 case "meeting/agenda_new_items_default_visibility": - return 165 + return 164 case "meeting/agenda_number_prefix": - return 166 + return 165 case "meeting/agenda_numeral_system": - return 167 + return 166 case "meeting/agenda_show_internal_items_on_projector": - return 168 + return 167 case "meeting/agenda_show_subtitles": - return 169 + return 168 case "meeting/agenda_show_topic_navigation_on_detail_view": - return 170 + return 169 case "meeting/all_projection_ids": - return 171 + return 170 case "meeting/anonymous_group_id": - return 172 + return 171 case "meeting/applause_enable": - return 173 + return 172 case "meeting/applause_max_amount": - return 174 + return 173 case "meeting/applause_min_amount": - return 175 + return 174 case "meeting/applause_particle_image_url": - return 176 + return 175 case "meeting/applause_show_level": - return 177 + return 176 case "meeting/applause_timeout": - return 178 + return 177 case "meeting/applause_type": - return 179 + return 178 case "meeting/assignment_candidate_ids": - return 180 + return 179 case "meeting/assignment_ids": - return 181 + return 180 case "meeting/assignment_poll_add_candidates_to_list_of_speakers": - return 182 + return 181 case "meeting/assignment_poll_config_id": - return 183 + return 182 case "meeting/assignment_poll_default_method": - return 184 + return 183 case "meeting/assignments_export_preamble": - return 185 + return 184 case "meeting/assignments_export_title": - return 186 + return 185 case "meeting/chat_group_ids": - return 187 + return 186 case "meeting/chat_message_ids": - return 188 + return 187 case "meeting/committee_id": - return 189 + return 188 case "meeting/conference_auto_connect": - return 190 + return 189 case "meeting/conference_auto_connect_next_speakers": - return 191 + return 190 case "meeting/conference_enable_helpdesk": - return 192 + return 191 case "meeting/conference_los_restriction": - return 193 + return 192 case "meeting/conference_open_microphone": - return 194 + return 193 case "meeting/conference_open_video": - return 195 + return 194 case "meeting/conference_show": - return 196 + return 195 case "meeting/conference_stream_poster_url": - return 197 + return 196 case "meeting/conference_stream_url": - return 198 + return 197 case "meeting/custom_translations": - return 199 + return 198 case "meeting/default_group_id": - return 200 + return 199 case "meeting/default_meeting_for_committee_id": - return 201 + return 200 case "meeting/default_projector_agenda_item_list_ids": - return 202 + return 201 case "meeting/default_projector_amendment_ids": - return 203 + return 202 case "meeting/default_projector_assignment_ids": - return 204 + return 203 case "meeting/default_projector_assignment_poll_ids": - return 205 + return 204 case "meeting/default_projector_countdown_ids": - return 206 + return 205 case "meeting/default_projector_current_los_ids": - return 207 + return 206 case "meeting/default_projector_list_of_speakers_ids": - return 208 + return 207 case "meeting/default_projector_mediafile_ids": - return 209 + return 208 case "meeting/default_projector_message_ids": - return 210 + return 209 case "meeting/default_projector_motion_block_ids": - return 211 + return 210 case "meeting/default_projector_motion_ids": - return 212 + return 211 case "meeting/default_projector_motion_poll_ids": - return 213 + return 212 case "meeting/default_projector_topic_ids": - return 214 + return 213 case "meeting/default_projector_topic_poll_ids": - return 215 + return 214 case "meeting/description": - return 216 + return 215 case "meeting/enable_anonymous": - return 217 + return 216 case "meeting/end_time": - return 218 + return 217 case "meeting/export_csv_encoding": - return 219 + return 218 case "meeting/export_csv_separator": - return 220 + return 219 case "meeting/export_pdf_fontsize": - return 221 + return 220 case "meeting/export_pdf_line_height": - return 222 + return 221 case "meeting/export_pdf_page_margin_bottom": - return 223 + return 222 case "meeting/export_pdf_page_margin_left": - return 224 + return 223 case "meeting/export_pdf_page_margin_right": - return 225 + return 224 case "meeting/export_pdf_page_margin_top": - return 226 + return 225 case "meeting/export_pdf_pagenumber_alignment": - return 227 + return 226 case "meeting/export_pdf_pagesize": - return 228 + return 227 case "meeting/external_id": - return 229 + return 228 case "meeting/font_bold_id": - return 230 + return 229 case "meeting/font_bold_italic_id": - return 231 + return 230 case "meeting/font_chyron_speaker_name_id": - return 232 + return 231 case "meeting/font_italic_id": - return 233 + return 232 case "meeting/font_monospace_id": - return 234 + return 233 case "meeting/font_projector_h1_id": - return 235 + return 234 case "meeting/font_projector_h2_id": - return 236 + return 235 case "meeting/font_regular_id": - return 237 + return 236 case "meeting/forwarded_motion_ids": - return 238 + return 237 case "meeting/group_ids": - return 239 + return 238 case "meeting/id": - return 240 + return 239 case "meeting/imported_at": - return 241 + return 240 case "meeting/is_active_in_organization_id": - return 242 + return 241 case "meeting/is_archived_in_organization_id": - return 243 + return 242 case "meeting/jitsi_domain": - return 244 + return 243 case "meeting/jitsi_room_name": - return 245 + return 244 case "meeting/jitsi_room_password": - return 246 + return 245 case "meeting/language": - return 247 + return 246 case "meeting/list_of_speakers_allow_multiple_speakers": - return 248 + return 247 case "meeting/list_of_speakers_amount_last_on_projector": - return 249 + return 248 case "meeting/list_of_speakers_amount_next_on_projector": - return 250 + return 249 case "meeting/list_of_speakers_can_create_point_of_order_for_others": - return 251 + return 250 case "meeting/list_of_speakers_can_set_contribution_self": - return 252 + return 251 case "meeting/list_of_speakers_closing_disables_point_of_order": - return 253 + return 252 case "meeting/list_of_speakers_countdown_id": - return 254 + return 253 case "meeting/list_of_speakers_couple_countdown": - return 255 + return 254 case "meeting/list_of_speakers_default_structure_level_time": - return 256 + return 255 case "meeting/list_of_speakers_enable_interposed_question": - return 257 + return 256 case "meeting/list_of_speakers_enable_point_of_order_categories": - return 258 + return 257 case "meeting/list_of_speakers_enable_point_of_order_speakers": - return 259 + return 258 case "meeting/list_of_speakers_enable_pro_contra_speech": - return 260 + return 259 case "meeting/list_of_speakers_hide_contribution_count": - return 261 + return 260 case "meeting/list_of_speakers_ids": - return 262 + return 261 case "meeting/list_of_speakers_initially_closed": - return 263 + return 262 case "meeting/list_of_speakers_intervention_time": - return 264 + return 263 case "meeting/list_of_speakers_present_users_only": - return 265 + return 264 case "meeting/list_of_speakers_show_amount_of_speakers_on_slide": - return 266 + return 265 case "meeting/list_of_speakers_show_first_contribution": - return 267 + return 266 case "meeting/list_of_speakers_speaker_note_for_everyone": - return 268 + return 267 case "meeting/location": - return 269 + return 268 case "meeting/locked_from_inside": - return 270 + return 269 case "meeting/logo_pdf_ballot_paper_id": - return 271 + return 270 case "meeting/logo_pdf_footer_l_id": - return 272 + return 271 case "meeting/logo_pdf_footer_r_id": - return 273 + return 272 case "meeting/logo_pdf_header_l_id": - return 274 + return 273 case "meeting/logo_pdf_header_r_id": - return 275 + return 274 case "meeting/logo_projector_header_id": - return 276 + return 275 case "meeting/logo_projector_main_id": - return 277 + return 276 case "meeting/logo_web_header_id": - return 278 + return 277 case "meeting/mediafile_ids": - return 279 + return 278 case "meeting/meeting_mediafile_ids": - return 280 + return 279 case "meeting/meeting_user_ids": - return 281 + return 280 case "meeting/motion_block_ids": - return 282 + return 281 case "meeting/motion_category_ids": - return 283 + return 282 case "meeting/motion_change_recommendation_ids": - return 284 + return 283 case "meeting/motion_comment_ids": - return 285 + return 284 case "meeting/motion_comment_section_ids": - return 286 + return 285 case "meeting/motion_editor_ids": - return 287 + return 286 case "meeting/motion_ids": - return 288 + return 287 case "meeting/motion_poll_config_id": - return 289 + return 288 case "meeting/motion_state_ids": - return 290 + return 289 case "meeting/motion_submitter_ids": - return 291 + return 290 case "meeting/motion_supporter_ids": - return 292 + return 291 case "meeting/motion_workflow_ids": - return 293 + return 292 case "meeting/motion_working_group_speaker_ids": - return 294 + return 293 case "meeting/motions_amendments_enabled": - return 295 + return 294 case "meeting/motions_amendments_in_main_list": - return 296 + return 295 case "meeting/motions_amendments_multiple_paragraphs": - return 297 + return 296 case "meeting/motions_amendments_of_amendments": - return 298 + return 297 case "meeting/motions_amendments_prefix": - return 299 + return 298 case "meeting/motions_amendments_text_mode": - return 300 + return 299 case "meeting/motions_block_slide_columns": - return 301 + return 300 case "meeting/motions_create_enable_additional_submitter_text": - return 302 + return 301 case "meeting/motions_default_amendment_workflow_id": - return 303 + return 302 case "meeting/motions_default_line_numbering": - return 304 + return 303 case "meeting/motions_default_sorting": - return 305 + return 304 case "meeting/motions_default_workflow_id": - return 306 + return 305 case "meeting/motions_enable_editor": - return 307 + return 306 case "meeting/motions_enable_origin_motion_display": - return 308 + return 307 case "meeting/motions_enable_reason_on_projector": - return 309 + return 308 case "meeting/motions_enable_recommendation_on_projector": - return 310 + return 309 case "meeting/motions_enable_restricted_editor_for_manager": - return 311 + return 310 case "meeting/motions_enable_restricted_editor_for_non_manager": - return 312 + return 311 case "meeting/motions_enable_sidebox_on_projector": - return 313 + return 312 case "meeting/motions_enable_text_on_projector": - return 314 + return 313 case "meeting/motions_enable_working_group_speaker": - return 315 + return 314 case "meeting/motions_export_follow_recommendation": - return 316 + return 315 case "meeting/motions_export_preamble": - return 317 + return 316 case "meeting/motions_export_submitter_recommendation": - return 318 + return 317 case "meeting/motions_export_title": - return 319 + return 318 case "meeting/motions_hide_metadata_background": - return 320 + return 319 case "meeting/motions_line_length": - return 321 + return 320 case "meeting/motions_number_min_digits": - return 322 + return 321 case "meeting/motions_number_type": - return 323 + return 322 case "meeting/motions_number_with_blank": - return 324 + return 323 case "meeting/motions_origin_motion_toggle_default": - return 325 + return 324 case "meeting/motions_preamble": - return 326 + return 325 case "meeting/motions_reason_required": - return 327 + return 326 case "meeting/motions_recommendation_text_mode": - return 328 + return 327 case "meeting/motions_recommendations_by": - return 329 + return 328 case "meeting/motions_show_referring_motions": - return 330 + return 329 case "meeting/motions_show_sequential_number": - return 331 + return 330 case "meeting/motions_supporters_min_amount": - return 332 + return 331 case "meeting/name": - return 333 + return 332 case "meeting/organization_tag_ids": - return 334 + return 333 case "meeting/personal_note_ids": - return 335 + return 334 case "meeting/point_of_order_category_ids": - return 336 + return 335 case "meeting/poll_countdown_id": - return 337 + return 336 case "meeting/poll_couple_countdown": - return 338 + return 337 case "meeting/poll_default_allow_invalid": - return 339 + return 338 case "meeting/poll_default_allow_vote_split": - return 340 + return 339 case "meeting/poll_default_ids": - return 341 + return 340 case "meeting/poll_default_live_voting_enabled": - return 342 + return 341 case "meeting/poll_default_required_majority": - return 343 + return 342 case "meeting/poll_enable_max_votes_per_option": - return 344 + return 343 case "meeting/poll_enable_max_yes_votes": - return 345 + return 344 case "meeting/poll_ids": - return 346 + return 345 case "meeting/poll_projection_max_columns": - return 347 + return 346 case "meeting/poll_projection_name_order_first": - return 348 + return 347 case "meeting/present_user_ids": - return 349 + return 348 case "meeting/projection_ids": - return 350 + return 349 case "meeting/projector_countdown_default_time": - return 351 + return 350 case "meeting/projector_countdown_ids": - return 352 + return 351 case "meeting/projector_countdown_warning_time": - return 353 + return 352 case "meeting/projector_ids": - return 354 + return 353 case "meeting/projector_message_ids": - return 355 + return 354 case "meeting/reference_projector_id": - return 356 + return 355 case "meeting/relevant_history_entry_ids": - return 357 + return 356 case "meeting/speaker_ids": - return 358 + return 357 case "meeting/start_time": - return 359 + return 358 case "meeting/structure_level_ids": - return 360 + return 359 case "meeting/structure_level_list_of_speakers_ids": - return 361 + return 360 case "meeting/tag_ids": - return 362 + return 361 case "meeting/template_for_organization_id": - return 363 + return 362 case "meeting/time_zone": - return 364 + return 363 case "meeting/topic_ids": - return 365 + return 364 case "meeting/topic_poll_config_id": - return 366 + return 365 case "meeting/topic_poll_default_method": - return 367 + return 366 case "meeting/user_ids": - return 368 + return 367 case "meeting/users_allow_self_set_present": - return 369 + return 368 case "meeting/users_email_body": - return 370 + return 369 case "meeting/users_email_replyto": - return 371 + return 370 case "meeting/users_email_sender": - return 372 + return 371 case "meeting/users_email_subject": - return 373 + return 372 case "meeting/users_enable_presence_view": - return 374 + return 373 case "meeting/users_enable_vote_delegations": - return 375 + return 374 case "meeting/users_enable_vote_weight": - return 376 + return 375 case "meeting/users_forbid_delegator_as_submitter": - return 377 + return 376 case "meeting/users_forbid_delegator_as_supporter": - return 378 + return 377 case "meeting/users_forbid_delegator_in_list_of_speakers": - return 379 + return 378 case "meeting/users_forbid_delegator_to_vote": - return 380 + return 379 case "meeting/users_pdf_welcometext": - return 381 + return 380 case "meeting/users_pdf_welcometitle": - return 382 + return 381 case "meeting/users_pdf_wlan_encryption": - return 383 + return 382 case "meeting/users_pdf_wlan_password": - return 384 + return 383 case "meeting/users_pdf_wlan_ssid": - return 385 + return 384 case "meeting/users_vote_delegations_max_amount": - return 386 + return 385 case "meeting/welcome_text": - return 387 + return 386 case "meeting/welcome_title": - return 388 + return 387 case "meeting_mediafile/A": - return 389 + return 388 case "meeting_mediafile/access_group_ids": - return 390 + return 389 case "meeting_mediafile/attachment_ids": - return 391 + return 390 case "meeting_mediafile/id": - return 392 + return 391 case "meeting_mediafile/inherited_access_group_ids": - return 393 + return 392 case "meeting_mediafile/is_public": - return 394 + return 393 case "meeting_mediafile/list_of_speakers_id": - return 395 + return 394 case "meeting_mediafile/mediafile_id": - return 396 + return 395 case "meeting_mediafile/meeting_id": - return 397 + return 396 case "meeting_mediafile/projection_ids": - return 398 + return 397 case "meeting_mediafile/used_as_font_bold_in_meeting_id": - return 399 + return 398 case "meeting_mediafile/used_as_font_bold_italic_in_meeting_id": - return 400 + return 399 case "meeting_mediafile/used_as_font_chyron_speaker_name_in_meeting_id": - return 401 + return 400 case "meeting_mediafile/used_as_font_italic_in_meeting_id": - return 402 + return 401 case "meeting_mediafile/used_as_font_monospace_in_meeting_id": - return 403 + return 402 case "meeting_mediafile/used_as_font_projector_h1_in_meeting_id": - return 404 + return 403 case "meeting_mediafile/used_as_font_projector_h2_in_meeting_id": - return 405 + return 404 case "meeting_mediafile/used_as_font_regular_in_meeting_id": - return 406 + return 405 case "meeting_mediafile/used_as_logo_pdf_ballot_paper_in_meeting_id": - return 407 + return 406 case "meeting_mediafile/used_as_logo_pdf_footer_l_in_meeting_id": - return 408 + return 407 case "meeting_mediafile/used_as_logo_pdf_footer_r_in_meeting_id": - return 409 + return 408 case "meeting_mediafile/used_as_logo_pdf_header_l_in_meeting_id": - return 410 + return 409 case "meeting_mediafile/used_as_logo_pdf_header_r_in_meeting_id": - return 411 + return 410 case "meeting_mediafile/used_as_logo_projector_header_in_meeting_id": - return 412 + return 411 case "meeting_mediafile/used_as_logo_projector_main_in_meeting_id": - return 413 + return 412 case "meeting_mediafile/used_as_logo_web_header_in_meeting_id": - return 414 + return 413 case "meeting_poll_default/A": - return 415 + return 414 case "meeting_poll_default/allow_abstain": - return 416 + return 415 case "meeting_poll_default/allow_nota": - return 417 + return 416 case "meeting_poll_default/display_chart": - return 418 + return 417 case "meeting_poll_default/group_ids": - return 419 + return 418 case "meeting_poll_default/id": - return 420 + return 419 case "meeting_poll_default/meeting_id": - return 421 + return 420 case "meeting_poll_default/onehundred_percent_base": - return 422 + return 421 case "meeting_poll_default/sort_result_by_votes": - return 423 + return 422 case "meeting_poll_default/strike_out": - return 424 + return 423 case "meeting_poll_default/used_as_assignment_poll_config_in_meeting_id": - return 425 + return 424 case "meeting_poll_default/used_as_motion_poll_config_in_meeting_id": - return 426 + return 425 case "meeting_poll_default/used_as_topic_poll_config_in_meeting_id": - return 427 + return 426 case "meeting_poll_default/visibility": - return 428 + return 427 case "meeting_user/A": - return 429 + return 428 case "meeting_user/B": - return 430 + return 429 case "meeting_user/C": - return 431 + return 430 case "meeting_user/D": - return 432 + return 431 case "meeting_user/E": - return 433 + return 432 case "meeting_user/about_me": - return 434 + return 433 case "meeting_user/acting_ballot_ids": - return 435 + return 434 case "meeting_user/assignment_candidate_ids": - return 436 + return 435 case "meeting_user/chat_message_ids": - return 437 + return 436 case "meeting_user/comment": + return 437 + case "meeting_user/group_ids": return 438 - case "meeting_user/entitled_at_poll_ids": + case "meeting_user/id": return 439 - case "meeting_user/group_ids": + case "meeting_user/locked_out": return 440 - case "meeting_user/history_entry_ids": + case "meeting_user/meeting_id": return 441 - case "meeting_user/id": + case "meeting_user/motion_editor_ids": return 442 - case "meeting_user/locked_out": + case "meeting_user/motion_submitter_ids": return 443 - case "meeting_user/meeting_id": + case "meeting_user/motion_supporter_ids": return 444 - case "meeting_user/motion_editor_ids": + case "meeting_user/motion_working_group_speaker_ids": return 445 - case "meeting_user/motion_submitter_ids": + case "meeting_user/number": return 446 - case "meeting_user/motion_supporter_ids": + case "meeting_user/personal_note_ids": return 447 - case "meeting_user/motion_working_group_speaker_ids": + case "meeting_user/poll_entitled_user_ids": return 448 - case "meeting_user/number": + case "meeting_user/poll_option_ids": return 449 - case "meeting_user/personal_note_ids": + case "meeting_user/represented_ballot_ids": return 450 - case "meeting_user/poll_option_ids": + case "meeting_user/speaker_ids": return 451 - case "meeting_user/represented_ballot_ids": + case "meeting_user/structure_level_ids": return 452 - case "meeting_user/speaker_ids": + case "meeting_user/user_id": return 453 - case "meeting_user/structure_level_ids": + case "meeting_user/vote_delegated_to_ids": return 454 - case "meeting_user/user_id": + case "meeting_user/vote_delegations_from_ids": return 455 - case "meeting_user/vote_delegated_to_ids": + case "meeting_user/vote_weight": return 456 - case "meeting_user/vote_delegations_from_ids": + case "motion/A": return 457 - case "meeting_user/vote_weight": + case "motion/B": return 458 - case "motion/A": + case "motion/C": return 459 - case "motion/B": + case "motion/D": return 460 - case "motion/C": + case "motion/E": return 461 - case "motion/D": + case "motion/additional_submitter": return 462 - case "motion/E": + case "motion/agenda_item_id": return 463 - case "motion/additional_submitter": + case "motion/all_derived_motion_ids": return 464 - case "motion/agenda_item_id": + case "motion/all_origin_ids": return 465 - case "motion/all_derived_motion_ids": + case "motion/amendment_ids": return 466 - case "motion/all_origin_ids": + case "motion/amendment_paragraphs": return 467 - case "motion/amendment_ids": + case "motion/attachment_meeting_mediafile_ids": return 468 - case "motion/amendment_paragraphs": + case "motion/block_id": return 469 - case "motion/attachment_meeting_mediafile_ids": + case "motion/category_id": return 470 - case "motion/block_id": + case "motion/category_weight": return 471 - case "motion/category_id": + case "motion/change_recommendation_ids": return 472 - case "motion/category_weight": + case "motion/comment_ids": return 473 - case "motion/change_recommendation_ids": + case "motion/created": return 474 - case "motion/comment_ids": + case "motion/derived_motion_ids": return 475 - case "motion/created": + case "motion/diff_version": return 476 - case "motion/derived_motion_ids": + case "motion/editor_ids": return 477 - case "motion/diff_version": + case "motion/forwarded": return 478 - case "motion/editor_ids": + case "motion/history_entry_ids": return 479 - case "motion/forwarded": + case "motion/id": return 480 - case "motion/history_entry_ids": + case "motion/identical_motion_ids": return 481 - case "motion/id": + case "motion/last_modified": return 482 - case "motion/identical_motion_ids": + case "motion/lead_motion_id": return 483 - case "motion/last_modified": + case "motion/list_of_speakers_id": return 484 - case "motion/lead_motion_id": + case "motion/marked_forwarded": return 485 - case "motion/list_of_speakers_id": + case "motion/meeting_id": return 486 - case "motion/marked_forwarded": + case "motion/modified_final_version": return 487 - case "motion/meeting_id": + case "motion/number": return 488 - case "motion/modified_final_version": + case "motion/number_value": return 489 - case "motion/number": + case "motion/origin_id": return 490 - case "motion/number_value": + case "motion/origin_meeting_id": return 491 - case "motion/origin_id": + case "motion/personal_note_ids": return 492 - case "motion/origin_meeting_id": + case "motion/poll_ids": return 493 - case "motion/personal_note_ids": + case "motion/projection_ids": return 494 - case "motion/poll_ids": + case "motion/reason": return 495 - case "motion/projection_ids": + case "motion/recommendation_extension": return 496 - case "motion/reason": + case "motion/recommendation_extension_reference_ids": return 497 - case "motion/recommendation_extension": + case "motion/recommendation_id": return 498 - case "motion/recommendation_extension_reference_ids": + case "motion/referenced_in_motion_recommendation_extension_ids": return 499 - case "motion/recommendation_id": + case "motion/referenced_in_motion_state_extension_ids": return 500 - case "motion/referenced_in_motion_recommendation_extension_ids": + case "motion/sequential_number": return 501 - case "motion/referenced_in_motion_state_extension_ids": + case "motion/sort_child_ids": return 502 - case "motion/sequential_number": + case "motion/sort_parent_id": return 503 - case "motion/sort_child_ids": + case "motion/sort_weight": return 504 - case "motion/sort_parent_id": + case "motion/start_line_number": return 505 - case "motion/sort_weight": + case "motion/state_extension": return 506 - case "motion/start_line_number": + case "motion/state_extension_reference_ids": return 507 - case "motion/state_extension": + case "motion/state_id": return 508 - case "motion/state_extension_reference_ids": + case "motion/submitter_ids": return 509 - case "motion/state_id": + case "motion/supporter_ids": return 510 - case "motion/submitter_ids": + case "motion/tag_ids": return 511 - case "motion/supporter_ids": + case "motion/text": return 512 - case "motion/tag_ids": + case "motion/text_hash": return 513 - case "motion/text": + case "motion/title": return 514 - case "motion/text_hash": + case "motion/workflow_timestamp": return 515 - case "motion/title": + case "motion/working_group_speaker_ids": return 516 - case "motion/workflow_timestamp": + case "motion_block/A": return 517 - case "motion/working_group_speaker_ids": + case "motion_block/agenda_item_id": return 518 - case "motion_block/A": + case "motion_block/id": return 519 - case "motion_block/agenda_item_id": + case "motion_block/internal": return 520 - case "motion_block/id": + case "motion_block/list_of_speakers_id": return 521 - case "motion_block/internal": + case "motion_block/meeting_id": return 522 - case "motion_block/list_of_speakers_id": + case "motion_block/motion_ids": return 523 - case "motion_block/meeting_id": + case "motion_block/projection_ids": return 524 - case "motion_block/motion_ids": + case "motion_block/sequential_number": return 525 - case "motion_block/projection_ids": + case "motion_block/title": return 526 - case "motion_block/sequential_number": + case "motion_category/A": return 527 - case "motion_block/title": + case "motion_category/child_ids": return 528 - case "motion_category/A": + case "motion_category/id": return 529 - case "motion_category/child_ids": + case "motion_category/level": return 530 - case "motion_category/id": + case "motion_category/meeting_id": return 531 - case "motion_category/level": + case "motion_category/motion_ids": return 532 - case "motion_category/meeting_id": + case "motion_category/name": return 533 - case "motion_category/motion_ids": + case "motion_category/parent_id": return 534 - case "motion_category/name": + case "motion_category/prefix": return 535 - case "motion_category/parent_id": + case "motion_category/sequential_number": return 536 - case "motion_category/prefix": + case "motion_category/weight": return 537 - case "motion_category/sequential_number": + case "motion_change_recommendation/A": return 538 - case "motion_category/weight": + case "motion_change_recommendation/creation_time": return 539 - case "motion_change_recommendation/A": + case "motion_change_recommendation/id": return 540 - case "motion_change_recommendation/creation_time": + case "motion_change_recommendation/internal": return 541 - case "motion_change_recommendation/id": + case "motion_change_recommendation/line_from": return 542 - case "motion_change_recommendation/internal": + case "motion_change_recommendation/line_to": return 543 - case "motion_change_recommendation/line_from": + case "motion_change_recommendation/meeting_id": return 544 - case "motion_change_recommendation/line_to": + case "motion_change_recommendation/motion_id": return 545 - case "motion_change_recommendation/meeting_id": + case "motion_change_recommendation/other_description": return 546 - case "motion_change_recommendation/motion_id": + case "motion_change_recommendation/rejected": return 547 - case "motion_change_recommendation/other_description": + case "motion_change_recommendation/text": return 548 - case "motion_change_recommendation/rejected": + case "motion_change_recommendation/type": return 549 - case "motion_change_recommendation/text": + case "motion_comment/A": return 550 - case "motion_change_recommendation/type": + case "motion_comment/comment": return 551 - case "motion_comment/A": + case "motion_comment/id": return 552 - case "motion_comment/comment": + case "motion_comment/meeting_id": return 553 - case "motion_comment/id": + case "motion_comment/motion_id": return 554 - case "motion_comment/meeting_id": + case "motion_comment/section_id": return 555 - case "motion_comment/motion_id": + case "motion_comment_section/A": return 556 - case "motion_comment/section_id": + case "motion_comment_section/comment_ids": return 557 - case "motion_comment_section/A": + case "motion_comment_section/id": return 558 - case "motion_comment_section/comment_ids": + case "motion_comment_section/meeting_id": return 559 - case "motion_comment_section/id": + case "motion_comment_section/name": return 560 - case "motion_comment_section/meeting_id": + case "motion_comment_section/read_group_ids": return 561 - case "motion_comment_section/name": + case "motion_comment_section/sequential_number": return 562 - case "motion_comment_section/read_group_ids": + case "motion_comment_section/submitter_can_write": return 563 - case "motion_comment_section/sequential_number": + case "motion_comment_section/weight": return 564 - case "motion_comment_section/submitter_can_write": + case "motion_comment_section/write_group_ids": return 565 - case "motion_comment_section/weight": + case "motion_editor/A": return 566 - case "motion_comment_section/write_group_ids": + case "motion_editor/id": return 567 - case "motion_editor/A": + case "motion_editor/meeting_id": return 568 - case "motion_editor/id": + case "motion_editor/meeting_user_id": return 569 - case "motion_editor/meeting_id": + case "motion_editor/motion_id": return 570 - case "motion_editor/meeting_user_id": + case "motion_editor/weight": return 571 - case "motion_editor/motion_id": + case "motion_state/A": return 572 - case "motion_editor/weight": + case "motion_state/allow_amendment_forwarding": return 573 - case "motion_state/A": + case "motion_state/allow_create_poll": return 574 - case "motion_state/allow_amendment_forwarding": + case "motion_state/allow_motion_forwarding": return 575 - case "motion_state/allow_create_poll": + case "motion_state/allow_submitter_edit": return 576 - case "motion_state/allow_motion_forwarding": + case "motion_state/allow_support": return 577 - case "motion_state/allow_submitter_edit": + case "motion_state/css_class": return 578 - case "motion_state/allow_support": + case "motion_state/first_state_of_workflow_id": return 579 - case "motion_state/css_class": + case "motion_state/id": return 580 - case "motion_state/first_state_of_workflow_id": + case "motion_state/is_internal": return 581 - case "motion_state/id": + case "motion_state/meeting_id": return 582 - case "motion_state/is_internal": + case "motion_state/merge_amendment_into_final": return 583 - case "motion_state/meeting_id": + case "motion_state/motion_ids": return 584 - case "motion_state/merge_amendment_into_final": + case "motion_state/motion_recommendation_ids": return 585 - case "motion_state/motion_ids": + case "motion_state/name": return 586 - case "motion_state/motion_recommendation_ids": + case "motion_state/next_state_ids": return 587 - case "motion_state/name": + case "motion_state/previous_state_ids": return 588 - case "motion_state/next_state_ids": + case "motion_state/recommendation_label": return 589 - case "motion_state/previous_state_ids": + case "motion_state/restrictions": return 590 - case "motion_state/recommendation_label": + case "motion_state/set_number": return 591 - case "motion_state/restrictions": + case "motion_state/set_workflow_timestamp": return 592 - case "motion_state/set_number": + case "motion_state/show_recommendation_extension_field": return 593 - case "motion_state/set_workflow_timestamp": + case "motion_state/show_state_extension_field": return 594 - case "motion_state/show_recommendation_extension_field": + case "motion_state/state_button_label": return 595 - case "motion_state/show_state_extension_field": + case "motion_state/submitter_withdraw_back_ids": return 596 - case "motion_state/state_button_label": + case "motion_state/submitter_withdraw_state_id": return 597 - case "motion_state/submitter_withdraw_back_ids": + case "motion_state/weight": return 598 - case "motion_state/submitter_withdraw_state_id": + case "motion_state/workflow_id": return 599 - case "motion_state/weight": + case "motion_submitter/A": return 600 - case "motion_state/workflow_id": + case "motion_submitter/id": return 601 - case "motion_submitter/A": + case "motion_submitter/meeting_id": return 602 - case "motion_submitter/id": + case "motion_submitter/meeting_user_id": return 603 - case "motion_submitter/meeting_id": + case "motion_submitter/motion_id": return 604 - case "motion_submitter/meeting_user_id": + case "motion_submitter/weight": return 605 - case "motion_submitter/motion_id": + case "motion_supporter/A": return 606 - case "motion_submitter/weight": + case "motion_supporter/id": return 607 - case "motion_supporter/A": + case "motion_supporter/meeting_id": return 608 - case "motion_supporter/id": + case "motion_supporter/meeting_user_id": return 609 - case "motion_supporter/meeting_id": + case "motion_supporter/motion_id": return 610 - case "motion_supporter/meeting_user_id": + case "motion_workflow/A": return 611 - case "motion_supporter/motion_id": + case "motion_workflow/default_amendment_workflow_meeting_id": return 612 - case "motion_workflow/A": + case "motion_workflow/default_workflow_meeting_id": return 613 - case "motion_workflow/default_amendment_workflow_meeting_id": + case "motion_workflow/first_state_id": return 614 - case "motion_workflow/default_workflow_meeting_id": + case "motion_workflow/id": return 615 - case "motion_workflow/first_state_id": + case "motion_workflow/meeting_id": return 616 - case "motion_workflow/id": + case "motion_workflow/name": return 617 - case "motion_workflow/meeting_id": + case "motion_workflow/sequential_number": return 618 - case "motion_workflow/name": + case "motion_workflow/state_ids": return 619 - case "motion_workflow/sequential_number": + case "motion_working_group_speaker/A": return 620 - case "motion_workflow/state_ids": + case "motion_working_group_speaker/id": return 621 - case "motion_working_group_speaker/A": + case "motion_working_group_speaker/meeting_id": return 622 - case "motion_working_group_speaker/id": + case "motion_working_group_speaker/meeting_user_id": return 623 - case "motion_working_group_speaker/meeting_id": + case "motion_working_group_speaker/motion_id": return 624 - case "motion_working_group_speaker/meeting_user_id": + case "motion_working_group_speaker/weight": return 625 - case "motion_working_group_speaker/motion_id": + case "organization/A": return 626 - case "motion_working_group_speaker/weight": + case "organization/B": return 627 - case "organization/A": + case "organization/C": return 628 - case "organization/B": + case "organization/D": return 629 - case "organization/C": + case "organization/E": return 630 - case "organization/D": + case "organization/active_meeting_ids": return 631 - case "organization/E": + case "organization/archived_meeting_ids": return 632 - case "organization/active_meeting_ids": + case "organization/committee_ids": return 633 - case "organization/archived_meeting_ids": + case "organization/default_language": return 634 - case "organization/committee_ids": + case "organization/description": return 635 - case "organization/default_language": + case "organization/disable_forward_with_attachments": return 636 - case "organization/description": + case "organization/enable_anonymous": return 637 - case "organization/disable_forward_with_attachments": + case "organization/enable_chat": return 638 - case "organization/enable_anonymous": + case "organization/enable_electronic_voting": return 639 - case "organization/enable_chat": + case "organization/gender_ids": return 640 - case "organization/enable_electronic_voting": + case "organization/id": return 641 - case "organization/gender_ids": + case "organization/legal_notice": return 642 - case "organization/id": + case "organization/limit_of_meetings": return 643 - case "organization/legal_notice": + case "organization/limit_of_users": return 644 - case "organization/limit_of_meetings": + case "organization/login_text": return 645 - case "organization/limit_of_users": + case "organization/mediafile_ids": return 646 - case "organization/login_text": + case "organization/name": return 647 - case "organization/mediafile_ids": + case "organization/organization_tag_ids": return 648 - case "organization/name": + case "organization/privacy_policy": return 649 - case "organization/organization_tag_ids": + case "organization/published_mediafile_ids": return 650 - case "organization/privacy_policy": + case "organization/require_duplicate_from": return 651 - case "organization/published_mediafile_ids": + case "organization/reset_password_verbose_errors": return 652 - case "organization/require_duplicate_from": + case "organization/restrict_edit_forward_committees": return 653 - case "organization/reset_password_verbose_errors": + case "organization/restrict_editing_same_level_committee_admins": return 654 - case "organization/restrict_edit_forward_committees": + case "organization/saml_attr_mapping": return 655 - case "organization/restrict_editing_same_level_committee_admins": + case "organization/saml_enabled": return 656 - case "organization/saml_attr_mapping": + case "organization/saml_login_button_text": return 657 - case "organization/saml_enabled": + case "organization/saml_metadata_idp": return 658 - case "organization/saml_login_button_text": + case "organization/saml_metadata_sp": return 659 - case "organization/saml_metadata_idp": + case "organization/saml_private_key": return 660 - case "organization/saml_metadata_sp": + case "organization/template_meeting_ids": return 661 - case "organization/saml_private_key": + case "organization/theme_id": return 662 - case "organization/template_meeting_ids": + case "organization/theme_ids": return 663 - case "organization/theme_id": + case "organization/time_zone": return 664 - case "organization/theme_ids": + case "organization/url": return 665 - case "organization/time_zone": + case "organization/user_ids": return 666 - case "organization/url": + case "organization/users_email_body": return 667 - case "organization/user_ids": + case "organization/users_email_replyto": return 668 - case "organization/users_email_body": + case "organization/users_email_sender": return 669 - case "organization/users_email_replyto": + case "organization/users_email_subject": return 670 - case "organization/users_email_sender": + case "organization_tag/A": return 671 - case "organization/users_email_subject": + case "organization_tag/color": return 672 - case "organization_tag/A": + case "organization_tag/id": return 673 - case "organization_tag/color": + case "organization_tag/name": return 674 - case "organization_tag/id": + case "organization_tag/organization_id": return 675 - case "organization_tag/name": + case "organization_tag/tagged_ids": return 676 - case "organization_tag/organization_id": + case "personal_note/A": return 677 - case "organization_tag/tagged_ids": + case "personal_note/content_object_id": return 678 - case "personal_note/A": + case "personal_note/id": return 679 - case "personal_note/content_object_id": + case "personal_note/meeting_id": return 680 - case "personal_note/id": + case "personal_note/meeting_user_id": return 681 - case "personal_note/meeting_id": + case "personal_note/note": return 682 - case "personal_note/meeting_user_id": + case "personal_note/star": return 683 - case "personal_note/note": + case "point_of_order_category/A": return 684 - case "personal_note/star": + case "point_of_order_category/id": return 685 - case "point_of_order_category/A": + case "point_of_order_category/meeting_id": return 686 - case "point_of_order_category/id": + case "point_of_order_category/rank": return 687 - case "point_of_order_category/meeting_id": + case "point_of_order_category/speaker_ids": return 688 - case "point_of_order_category/rank": + case "point_of_order_category/text": return 689 - case "point_of_order_category/speaker_ids": + case "poll/A": return 690 - case "point_of_order_category/text": + case "poll/B": return 691 - case "poll/A": + case "poll/allow_invalid": return 692 - case "poll/B": + case "poll/allow_vote_split": return 693 - case "poll/allow_invalid": + case "poll/anonymized": return 694 - case "poll/allow_vote_split": + case "poll/ballot_ids": return 695 - case "poll/anonymized": + case "poll/ballot_user_ids": return 696 - case "poll/ballot_ids": + case "poll/config_id": return 697 - case "poll/ballot_user_ids": + case "poll/content_object_id": return 698 - case "poll/config_id": + case "poll/entitled_group_ids": return 699 - case "poll/content_object_id": + case "poll/entitled_user_ids": return 700 - case "poll/entitled_group_ids": + case "poll/id": return 701 - case "poll/entitled_meeting_user_ids": + case "poll/live_voting_enabled": return 702 - case "poll/history_entry_ids": + case "poll/meeting_id": return 703 - case "poll/id": + case "poll/option_ids": return 704 - case "poll/live_voting_enabled": + case "poll/projection_ids": return 705 - case "poll/meeting_id": + case "poll/published": return 706 - case "poll/option_ids": + case "poll/result": return 707 - case "poll/projection_ids": + case "poll/sequential_number": return 708 - case "poll/published": + case "poll/state": return 709 - case "poll/result": + case "poll/title": return 710 - case "poll/sequential_number": + case "poll/visibility": return 711 - case "poll/state": + case "poll_ballot/A": return 712 - case "poll/title": + case "poll_ballot/id": return 713 - case "poll/visibility": + case "poll_ballot/poll_ballot_user_id": return 714 - case "poll_ballot/A": + case "poll_ballot/poll_id": return 715 - case "poll_ballot/id": + case "poll_ballot/split": return 716 - case "poll_ballot/poll_ballot_user_id": + case "poll_ballot/value": return 717 - case "poll_ballot/poll_id": + case "poll_ballot/weight": return 718 - case "poll_ballot/split": + case "poll_ballot_user/A": return 719 - case "poll_ballot/value": + case "poll_ballot_user/acting_meeting_user_id": return 720 - case "poll_ballot/weight": + case "poll_ballot_user/id": return 721 - case "poll_ballot_user/A": + case "poll_ballot_user/poll_ballot_id": return 722 - case "poll_ballot_user/acting_meeting_user_id": + case "poll_ballot_user/poll_id": return 723 - case "poll_ballot_user/id": + case "poll_ballot_user/represented_meeting_user_id": return 724 - case "poll_ballot_user/poll_ballot_id": + case "poll_config_approval/A": return 725 - case "poll_ballot_user/poll_id": + case "poll_config_approval/allow_abstain": return 726 - case "poll_ballot_user/represented_meeting_user_id": + case "poll_config_approval/id": return 727 - case "poll_config_approval/A": + case "poll_config_approval/onehundred_percent_base": return 728 - case "poll_config_approval/allow_abstain": + case "poll_config_approval/poll_id": return 729 - case "poll_config_approval/id": + case "poll_config_approval/required_majority": return 730 - case "poll_config_approval/onehundred_percent_base": + case "poll_config_rating_approval/A": return 731 - case "poll_config_approval/poll_id": + case "poll_config_rating_approval/allow_abstain": return 732 - case "poll_config_approval/required_majority": + case "poll_config_rating_approval/id": return 733 - case "poll_config_rating_approval/A": + case "poll_config_rating_approval/max_options_amount": return 734 - case "poll_config_rating_approval/allow_abstain": + case "poll_config_rating_approval/max_yes_amount": return 735 - case "poll_config_rating_approval/id": + case "poll_config_rating_approval/min_options_amount": return 736 - case "poll_config_rating_approval/max_options_amount": + case "poll_config_rating_approval/onehundred_percent_base": return 737 - case "poll_config_rating_approval/max_yes_amount": + case "poll_config_rating_approval/poll_id": return 738 - case "poll_config_rating_approval/min_options_amount": + case "poll_config_rating_approval/required_majority": return 739 - case "poll_config_rating_approval/onehundred_percent_base": + case "poll_config_rating_score/A": return 740 - case "poll_config_rating_approval/poll_id": + case "poll_config_rating_score/id": return 741 - case "poll_config_rating_approval/required_majority": + case "poll_config_rating_score/max_options_amount": return 742 - case "poll_config_rating_score/A": + case "poll_config_rating_score/max_vote_sum": return 743 - case "poll_config_rating_score/id": + case "poll_config_rating_score/max_votes_per_option": return 744 - case "poll_config_rating_score/max_options_amount": + case "poll_config_rating_score/min_options_amount": return 745 - case "poll_config_rating_score/max_vote_sum": + case "poll_config_rating_score/min_vote_sum": return 746 - case "poll_config_rating_score/max_votes_per_option": + case "poll_config_rating_score/onehundred_percent_base": return 747 - case "poll_config_rating_score/min_options_amount": + case "poll_config_rating_score/poll_id": return 748 - case "poll_config_rating_score/min_vote_sum": + case "poll_config_rating_score/required_majority": return 749 - case "poll_config_rating_score/onehundred_percent_base": + case "poll_config_selection/A": return 750 - case "poll_config_rating_score/poll_id": + case "poll_config_selection/allow_nota": return 751 - case "poll_config_rating_score/required_majority": + case "poll_config_selection/display_chart": return 752 - case "poll_config_selection/A": + case "poll_config_selection/id": return 753 - case "poll_config_selection/allow_nota": + case "poll_config_selection/max_options_amount": return 754 - case "poll_config_selection/display_chart": + case "poll_config_selection/min_options_amount": return 755 - case "poll_config_selection/id": + case "poll_config_selection/onehundred_percent_base": return 756 - case "poll_config_selection/max_options_amount": + case "poll_config_selection/poll_id": return 757 - case "poll_config_selection/min_options_amount": + case "poll_config_selection/required_majority": return 758 - case "poll_config_selection/onehundred_percent_base": + case "poll_config_selection/strike_out": return 759 - case "poll_config_selection/poll_id": + case "poll_config_stv_scottish/A": return 760 - case "poll_config_selection/required_majority": + case "poll_config_stv_scottish/id": return 761 - case "poll_config_selection/strike_out": + case "poll_config_stv_scottish/poll_id": return 762 - case "poll_config_stv_scottish/A": + case "poll_config_stv_scottish/posts": return 763 - case "poll_config_stv_scottish/id": + case "poll_entitled_user/A": return 764 - case "poll_config_stv_scottish/poll_id": + case "poll_entitled_user/id": return 765 - case "poll_config_stv_scottish/posts": + case "poll_entitled_user/meeting_user_id": return 766 - case "poll_option/A": + case "poll_entitled_user/poll_id": return 767 - case "poll_option/id": + case "poll_option/A": return 768 - case "poll_option/meeting_user_id": + case "poll_option/content_object_id": return 769 - case "poll_option/poll_id": + case "poll_option/id": return 770 - case "poll_option/text": + case "poll_option/poll_id": return 771 - case "poll_option/weight": + case "poll_option/text": return 772 - case "projection/A": + case "poll_option/weight": return 773 - case "projection/content_object_id": + case "projection/A": return 774 - case "projection/current_projector_id": + case "projection/content_object_id": return 775 - case "projection/history_projector_id": + case "projection/current_projector_id": return 776 - case "projection/id": + case "projection/history_projector_id": return 777 - case "projection/meeting_id": + case "projection/id": return 778 - case "projection/options": + case "projection/meeting_id": return 779 - case "projection/preview_projector_id": + case "projection/options": return 780 - case "projection/stable": + case "projection/preview_projector_id": return 781 - case "projection/type": + case "projection/stable": return 782 - case "projection/weight": + case "projection/type": return 783 - case "projector/A": + case "projection/weight": return 784 - case "projector/aspect_ratio_denominator": + case "projector/A": return 785 - case "projector/aspect_ratio_numerator": + case "projector/aspect_ratio_denominator": return 786 - case "projector/background_color": + case "projector/aspect_ratio_numerator": return 787 - case "projector/chyron_background_color": + case "projector/background_color": return 788 - case "projector/chyron_background_color_2": + case "projector/chyron_background_color": return 789 - case "projector/chyron_font_color": + case "projector/chyron_background_color_2": return 790 - case "projector/chyron_font_color_2": + case "projector/chyron_font_color": return 791 - case "projector/color": + case "projector/chyron_font_color_2": return 792 - case "projector/current_projection_ids": + case "projector/color": return 793 - case "projector/header_background_color": + case "projector/current_projection_ids": return 794 - case "projector/header_font_color": + case "projector/header_background_color": return 795 - case "projector/header_h1_color": + case "projector/header_font_color": return 796 - case "projector/history_projection_ids": + case "projector/header_h1_color": return 797 - case "projector/id": + case "projector/history_projection_ids": return 798 - case "projector/is_internal": + case "projector/id": return 799 - case "projector/meeting_id": + case "projector/is_internal": return 800 - case "projector/name": + case "projector/meeting_id": return 801 - case "projector/preview_projection_ids": + case "projector/name": return 802 - case "projector/scale": + case "projector/preview_projection_ids": return 803 - case "projector/scroll": + case "projector/scale": return 804 - case "projector/sequential_number": + case "projector/scroll": return 805 - case "projector/show_clock": + case "projector/sequential_number": return 806 - case "projector/show_header_footer": + case "projector/show_clock": return 807 - case "projector/show_logo": + case "projector/show_header_footer": return 808 - case "projector/show_title": + case "projector/show_logo": return 809 - case "projector/used_as_default_projector_for_agenda_item_list_in_meeting_id": + case "projector/show_title": return 810 - case "projector/used_as_default_projector_for_amendment_in_meeting_id": + case "projector/used_as_default_projector_for_agenda_item_list_in_meeting_id": return 811 - case "projector/used_as_default_projector_for_assignment_in_meeting_id": + case "projector/used_as_default_projector_for_amendment_in_meeting_id": return 812 - case "projector/used_as_default_projector_for_assignment_poll_in_meeting_id": + case "projector/used_as_default_projector_for_assignment_in_meeting_id": return 813 - case "projector/used_as_default_projector_for_countdown_in_meeting_id": + case "projector/used_as_default_projector_for_assignment_poll_in_meeting_id": return 814 - case "projector/used_as_default_projector_for_current_los_in_meeting_id": + case "projector/used_as_default_projector_for_countdown_in_meeting_id": return 815 - case "projector/used_as_default_projector_for_list_of_speakers_in_meeting_id": + case "projector/used_as_default_projector_for_current_los_in_meeting_id": return 816 - case "projector/used_as_default_projector_for_mediafile_in_meeting_id": + case "projector/used_as_default_projector_for_list_of_speakers_in_meeting_id": return 817 - case "projector/used_as_default_projector_for_message_in_meeting_id": + case "projector/used_as_default_projector_for_mediafile_in_meeting_id": return 818 - case "projector/used_as_default_projector_for_motion_block_in_meeting_id": + case "projector/used_as_default_projector_for_message_in_meeting_id": return 819 - case "projector/used_as_default_projector_for_motion_in_meeting_id": + case "projector/used_as_default_projector_for_motion_block_in_meeting_id": return 820 - case "projector/used_as_default_projector_for_motion_poll_in_meeting_id": + case "projector/used_as_default_projector_for_motion_in_meeting_id": return 821 - case "projector/used_as_default_projector_for_topic_in_meeting_id": + case "projector/used_as_default_projector_for_motion_poll_in_meeting_id": return 822 - case "projector/used_as_default_projector_for_topic_poll_in_meeting_id": + case "projector/used_as_default_projector_for_topic_in_meeting_id": return 823 - case "projector/used_as_reference_projector_meeting_id": + case "projector/used_as_default_projector_for_topic_poll_in_meeting_id": return 824 - case "projector/width": + case "projector/used_as_reference_projector_meeting_id": return 825 - case "projector_countdown/A": + case "projector/width": return 826 - case "projector_countdown/countdown_time": + case "projector_countdown/A": return 827 - case "projector_countdown/default_time": + case "projector_countdown/countdown_time": return 828 - case "projector_countdown/description": + case "projector_countdown/default_time": return 829 - case "projector_countdown/id": + case "projector_countdown/description": return 830 - case "projector_countdown/meeting_id": + case "projector_countdown/id": return 831 - case "projector_countdown/projection_ids": + case "projector_countdown/meeting_id": return 832 - case "projector_countdown/running": + case "projector_countdown/projection_ids": return 833 - case "projector_countdown/title": + case "projector_countdown/running": return 834 - case "projector_countdown/used_as_list_of_speakers_countdown_meeting_id": + case "projector_countdown/title": return 835 - case "projector_countdown/used_as_poll_countdown_meeting_id": + case "projector_countdown/used_as_list_of_speakers_countdown_meeting_id": return 836 - case "projector_message/A": + case "projector_countdown/used_as_poll_countdown_meeting_id": return 837 - case "projector_message/id": + case "projector_message/A": return 838 - case "projector_message/meeting_id": + case "projector_message/id": return 839 - case "projector_message/message": + case "projector_message/meeting_id": return 840 - case "projector_message/projection_ids": + case "projector_message/message": return 841 - case "speaker/A": + case "projector_message/projection_ids": return 842 - case "speaker/answer": + case "speaker/A": return 843 - case "speaker/begin_time": + case "speaker/answer": return 844 - case "speaker/end_time": + case "speaker/begin_time": return 845 - case "speaker/id": + case "speaker/end_time": return 846 - case "speaker/list_of_speakers_id": + case "speaker/id": return 847 - case "speaker/meeting_id": + case "speaker/list_of_speakers_id": return 848 - case "speaker/meeting_user_id": + case "speaker/meeting_id": return 849 - case "speaker/note": + case "speaker/meeting_user_id": return 850 - case "speaker/pause_time": + case "speaker/note": return 851 - case "speaker/point_of_order": + case "speaker/pause_time": return 852 - case "speaker/point_of_order_category_id": + case "speaker/point_of_order": return 853 - case "speaker/speech_state": + case "speaker/point_of_order_category_id": return 854 - case "speaker/structure_level_list_of_speakers_id": + case "speaker/speech_state": return 855 - case "speaker/total_pause": + case "speaker/structure_level_list_of_speakers_id": return 856 - case "speaker/unpause_time": + case "speaker/total_pause": return 857 - case "speaker/weight": + case "speaker/unpause_time": return 858 - case "structure_level/A": + case "speaker/weight": return 859 - case "structure_level/color": + case "structure_level/A": return 860 - case "structure_level/default_time": + case "structure_level/color": return 861 - case "structure_level/id": + case "structure_level/default_time": return 862 - case "structure_level/meeting_id": + case "structure_level/id": return 863 - case "structure_level/meeting_user_ids": + case "structure_level/meeting_id": return 864 - case "structure_level/name": + case "structure_level/meeting_user_ids": return 865 - case "structure_level/structure_level_list_of_speakers_ids": + case "structure_level/name": return 866 - case "structure_level_list_of_speakers/A": + case "structure_level/structure_level_list_of_speakers_ids": return 867 - case "structure_level_list_of_speakers/additional_time": + case "structure_level_list_of_speakers/A": return 868 - case "structure_level_list_of_speakers/current_start_time": + case "structure_level_list_of_speakers/additional_time": return 869 - case "structure_level_list_of_speakers/id": + case "structure_level_list_of_speakers/current_start_time": return 870 - case "structure_level_list_of_speakers/initial_time": + case "structure_level_list_of_speakers/id": return 871 - case "structure_level_list_of_speakers/list_of_speakers_id": + case "structure_level_list_of_speakers/initial_time": return 872 - case "structure_level_list_of_speakers/meeting_id": + case "structure_level_list_of_speakers/list_of_speakers_id": return 873 - case "structure_level_list_of_speakers/remaining_time": + case "structure_level_list_of_speakers/meeting_id": return 874 - case "structure_level_list_of_speakers/speaker_ids": + case "structure_level_list_of_speakers/remaining_time": return 875 - case "structure_level_list_of_speakers/structure_level_id": + case "structure_level_list_of_speakers/speaker_ids": return 876 - case "tag/A": + case "structure_level_list_of_speakers/structure_level_id": return 877 - case "tag/id": + case "tag/A": return 878 - case "tag/meeting_id": + case "tag/id": return 879 - case "tag/name": + case "tag/meeting_id": return 880 - case "tag/tagged_ids": + case "tag/name": return 881 - case "theme/A": + case "tag/tagged_ids": return 882 - case "theme/abstain": + case "theme/A": return 883 - case "theme/accent_100": + case "theme/abstain": return 884 - case "theme/accent_200": + case "theme/accent_100": return 885 - case "theme/accent_300": + case "theme/accent_200": return 886 - case "theme/accent_400": + case "theme/accent_300": return 887 - case "theme/accent_50": + case "theme/accent_400": return 888 - case "theme/accent_500": + case "theme/accent_50": return 889 - case "theme/accent_600": + case "theme/accent_500": return 890 - case "theme/accent_700": + case "theme/accent_600": return 891 - case "theme/accent_800": + case "theme/accent_700": return 892 - case "theme/accent_900": + case "theme/accent_800": return 893 - case "theme/accent_a100": + case "theme/accent_900": return 894 - case "theme/accent_a200": + case "theme/accent_a100": return 895 - case "theme/accent_a400": + case "theme/accent_a200": return 896 - case "theme/accent_a700": + case "theme/accent_a400": return 897 - case "theme/headbar": + case "theme/accent_a700": return 898 - case "theme/id": + case "theme/headbar": return 899 - case "theme/name": + case "theme/id": return 900 - case "theme/no": + case "theme/name": return 901 - case "theme/organization_id": + case "theme/no": return 902 - case "theme/primary_100": + case "theme/organization_id": return 903 - case "theme/primary_200": + case "theme/primary_100": return 904 - case "theme/primary_300": + case "theme/primary_200": return 905 - case "theme/primary_400": + case "theme/primary_300": return 906 - case "theme/primary_50": + case "theme/primary_400": return 907 - case "theme/primary_500": + case "theme/primary_50": return 908 - case "theme/primary_600": + case "theme/primary_500": return 909 - case "theme/primary_700": + case "theme/primary_600": return 910 - case "theme/primary_800": + case "theme/primary_700": return 911 - case "theme/primary_900": + case "theme/primary_800": return 912 - case "theme/primary_a100": + case "theme/primary_900": return 913 - case "theme/primary_a200": + case "theme/primary_a100": return 914 - case "theme/primary_a400": + case "theme/primary_a200": return 915 - case "theme/primary_a700": + case "theme/primary_a400": return 916 - case "theme/theme_for_organization_id": + case "theme/primary_a700": return 917 - case "theme/warn_100": + case "theme/theme_for_organization_id": return 918 - case "theme/warn_200": + case "theme/warn_100": return 919 - case "theme/warn_300": + case "theme/warn_200": return 920 - case "theme/warn_400": + case "theme/warn_300": return 921 - case "theme/warn_50": + case "theme/warn_400": return 922 - case "theme/warn_500": + case "theme/warn_50": return 923 - case "theme/warn_600": + case "theme/warn_500": return 924 - case "theme/warn_700": + case "theme/warn_600": return 925 - case "theme/warn_800": + case "theme/warn_700": return 926 - case "theme/warn_900": + case "theme/warn_800": return 927 - case "theme/warn_a100": + case "theme/warn_900": return 928 - case "theme/warn_a200": + case "theme/warn_a100": return 929 - case "theme/warn_a400": + case "theme/warn_a200": return 930 - case "theme/warn_a700": + case "theme/warn_a400": return 931 - case "theme/yes": + case "theme/warn_a700": return 932 - case "topic/A": + case "theme/yes": return 933 - case "topic/agenda_item_id": + case "topic/A": return 934 - case "topic/attachment_meeting_mediafile_ids": + case "topic/agenda_item_id": return 935 - case "topic/id": + case "topic/attachment_meeting_mediafile_ids": return 936 - case "topic/list_of_speakers_id": + case "topic/history_entry_ids": return 937 - case "topic/meeting_id": + case "topic/id": return 938 - case "topic/poll_ids": + case "topic/list_of_speakers_id": return 939 - case "topic/projection_ids": + case "topic/meeting_id": return 940 - case "topic/sequential_number": + case "topic/poll_ids": return 941 - case "topic/text": + case "topic/projection_ids": return 942 - case "topic/title": + case "topic/sequential_number": return 943 - case "user/A": + case "topic/text": return 944 - case "user/B": + case "topic/title": return 945 - case "user/D": + case "user/A": return 946 - case "user/E": + case "user/B": return 947 - case "user/F": + case "user/D": return 948 - case "user/G": + case "user/E": return 949 - case "user/H": + case "user/F": return 950 - case "user/can_change_own_password": + case "user/G": return 951 - case "user/committee_ids": + case "user/H": return 952 - case "user/committee_management_ids": + case "user/can_change_own_password": return 953 - case "user/default_password": + case "user/committee_ids": return 954 - case "user/default_vote_weight": + case "user/committee_management_ids": return 955 - case "user/email": + case "user/default_password": return 956 - case "user/external": + case "user/default_vote_weight": return 957 - case "user/first_name": + case "user/email": return 958 - case "user/gender_id": + case "user/external": return 959 - case "user/history_entry_ids": + case "user/first_name": return 960 - case "user/history_position_ids": + case "user/gender_id": return 961 - case "user/home_committee_id": + case "user/history_entry_ids": return 962 - case "user/id": + case "user/history_position_ids": return 963 - case "user/is_active": + case "user/home_committee_id": return 964 - case "user/is_demo_user": + case "user/id": return 965 - case "user/is_physical_person": + case "user/is_active": return 966 - case "user/is_present_in_meeting_ids": + case "user/is_demo_user": return 967 - case "user/last_email_sent": + case "user/is_physical_person": return 968 - case "user/last_login": + case "user/is_present_in_meeting_ids": return 969 - case "user/last_name": + case "user/last_email_sent": return 970 - case "user/meeting_ids": + case "user/last_login": return 971 - case "user/meeting_user_ids": + case "user/last_name": return 972 - case "user/member_number": + case "user/meeting_ids": return 973 - case "user/organization_id": + case "user/meeting_user_ids": return 974 - case "user/organization_management_level": + case "user/member_number": return 975 - case "user/password": + case "user/organization_id": return 976 - case "user/pronoun": + case "user/organization_management_level": return 977 - case "user/saml_id": + case "user/password": return 978 - case "user/title": + case "user/poll_option_ids": return 979 - case "user/username": + case "user/pronoun": return 980 + case "user/saml_id": + return 981 + case "user/title": + return 982 + case "user/username": + return 983 default: return -1 } diff --git a/datastore/dsmodels/models_generated.go b/datastore/dsmodels/models_generated.go index 4fa3e38bf..abfb1265e 100644 --- a/datastore/dsmodels/models_generated.go +++ b/datastore/dsmodels/models_generated.go @@ -1261,16 +1261,15 @@ func (r *Fetch) Group(ids ...int) *groupBuilder { // HistoryEntry has all fields from history_entry. type HistoryEntry struct { - Entries []string - ID int - MeetingID dsfetch.Maybe[int] - ModelID dsfetch.Maybe[string] - OriginalModelID string - PositionID int - StructuredInformation json.RawMessage - Meeting *dsfetch.Maybe[Meeting] - Model HistoryEntryModelUnion - Position *HistoryPosition + Entries []string + ID int + MeetingID dsfetch.Maybe[int] + ModelID dsfetch.Maybe[string] + OriginalModelID string + PositionID int + Meeting *dsfetch.Maybe[Meeting] + Model HistoryEntryModelUnion + Position *HistoryPosition } type historyEntryBuilder struct { @@ -1286,7 +1285,6 @@ func (b *historyEntryBuilder) lazy(ds *Fetch, idI any) *HistoryEntry { ds.HistoryEntry_ModelID(id).Lazy(&c.ModelID) ds.HistoryEntry_OriginalModelID(id).Lazy(&c.OriginalModelID) ds.HistoryEntry_PositionID(id).Lazy(&c.PositionID) - ds.HistoryEntry_StructuredInformation(id).Lazy(&c.StructuredInformation) return &c } @@ -1323,11 +1321,10 @@ type HistoryEntryModelUnion interface { isHistoryEntryModelUnion() } -func (*Assignment) isHistoryEntryModelUnion() {} -func (*MeetingUser) isHistoryEntryModelUnion() {} -func (*Motion) isHistoryEntryModelUnion() {} -func (*Poll) isHistoryEntryModelUnion() {} -func (*User) isHistoryEntryModelUnion() {} +func (*Assignment) isHistoryEntryModelUnion() {} +func (*Motion) isHistoryEntryModelUnion() {} +func (*Topic) isHistoryEntryModelUnion() {} +func (*User) isHistoryEntryModelUnion() {} type historyEntryModelUnionBuilder struct { builder[historyEntryModelUnionBuilder, *historyEntryModelUnionBuilder, HistoryEntryModelUnion, HistoryEntryModelUnion] @@ -1358,14 +1355,6 @@ func (b *historyEntryModelUnionBuilder) lazy(ds *Fetch, id any) HistoryEntryMode }, } return builder.lazy(ds, intId) - case "meeting_user": - builder := &meetingUserBuilder{ - builder: builder[meetingUserBuilder, *meetingUserBuilder, MeetingUser, *MeetingUser]{ - fetch: ds, - conv: func(p *MeetingUser) MeetingUser { return *p }, - }, - } - return builder.lazy(ds, intId) case "motion": builder := &motionBuilder{ builder: builder[motionBuilder, *motionBuilder, Motion, *Motion]{ @@ -1374,11 +1363,11 @@ func (b *historyEntryModelUnionBuilder) lazy(ds *Fetch, id any) HistoryEntryMode }, } return builder.lazy(ds, intId) - case "poll": - builder := &pollBuilder{ - builder: builder[pollBuilder, *pollBuilder, Poll, *Poll]{ + case "topic": + builder := &topicBuilder{ + builder: builder[topicBuilder, *topicBuilder, Topic, *Topic]{ fetch: ds, - conv: func(p *Poll) Poll { return *p }, + conv: func(p *Topic) Topic { return *p }, }, } return builder.lazy(ds, intId) @@ -4068,9 +4057,7 @@ type MeetingUser struct { AssignmentCandidateIDs []int ChatMessageIDs []int Comment string - EntitledAtPollIDs []int GroupIDs []int - HistoryEntryIDs []int ID int LockedOut bool MeetingID int @@ -4080,6 +4067,7 @@ type MeetingUser struct { MotionWorkingGroupSpeakerIDs []int Number string PersonalNoteIDs []int + PollEntitledUserIDs []int PollOptionIDs []int RepresentedBallotIDs []int SpeakerIDs []int @@ -4091,15 +4079,14 @@ type MeetingUser struct { ActingBallotList []PollBallotUser AssignmentCandidateList []AssignmentCandidate ChatMessageList []ChatMessage - EntitledAtPollList []Poll GroupList []Group - HistoryEntryList []HistoryEntry Meeting *Meeting MotionEditorList []MotionEditor MotionSubmitterList []MotionSubmitter MotionSupporterList []MotionSupporter MotionWorkingGroupSpeakerList []MotionWorkingGroupSpeaker PersonalNoteList []PersonalNote + PollEntitledUserList []PollEntitledUser PollOptionList []PollOption RepresentedBallotList []PollBallotUser SpeakerList []Speaker @@ -4121,9 +4108,7 @@ func (b *meetingUserBuilder) lazy(ds *Fetch, idI any) *MeetingUser { ds.MeetingUser_AssignmentCandidateIDs(id).Lazy(&c.AssignmentCandidateIDs) ds.MeetingUser_ChatMessageIDs(id).Lazy(&c.ChatMessageIDs) ds.MeetingUser_Comment(id).Lazy(&c.Comment) - ds.MeetingUser_EntitledAtPollIDs(id).Lazy(&c.EntitledAtPollIDs) ds.MeetingUser_GroupIDs(id).Lazy(&c.GroupIDs) - ds.MeetingUser_HistoryEntryIDs(id).Lazy(&c.HistoryEntryIDs) ds.MeetingUser_ID(id).Lazy(&c.ID) ds.MeetingUser_LockedOut(id).Lazy(&c.LockedOut) ds.MeetingUser_MeetingID(id).Lazy(&c.MeetingID) @@ -4133,6 +4118,7 @@ func (b *meetingUserBuilder) lazy(ds *Fetch, idI any) *MeetingUser { ds.MeetingUser_MotionWorkingGroupSpeakerIDs(id).Lazy(&c.MotionWorkingGroupSpeakerIDs) ds.MeetingUser_Number(id).Lazy(&c.Number) ds.MeetingUser_PersonalNoteIDs(id).Lazy(&c.PersonalNoteIDs) + ds.MeetingUser_PollEntitledUserIDs(id).Lazy(&c.PollEntitledUserIDs) ds.MeetingUser_PollOptionIDs(id).Lazy(&c.PollOptionIDs) ds.MeetingUser_RepresentedBallotIDs(id).Lazy(&c.RepresentedBallotIDs) ds.MeetingUser_SpeakerIDs(id).Lazy(&c.SpeakerIDs) @@ -4188,19 +4174,6 @@ func (b *meetingUserBuilder) ChatMessageList() *chatMessageBuilder { } } -func (b *meetingUserBuilder) EntitledAtPollList() *pollBuilder { - return &pollBuilder{ - builder: builder[pollBuilder, *pollBuilder, Poll, *Poll]{ - fetch: b.fetch, - parent: b, - idField: "EntitledAtPollIDs", - relField: "EntitledAtPollList", - many: true, - conv: func(p *Poll) Poll { return *p }, - }, - } -} - func (b *meetingUserBuilder) GroupList() *groupBuilder { return &groupBuilder{ builder: builder[groupBuilder, *groupBuilder, Group, *Group]{ @@ -4214,19 +4187,6 @@ func (b *meetingUserBuilder) GroupList() *groupBuilder { } } -func (b *meetingUserBuilder) HistoryEntryList() *historyEntryBuilder { - return &historyEntryBuilder{ - builder: builder[historyEntryBuilder, *historyEntryBuilder, HistoryEntry, *HistoryEntry]{ - fetch: b.fetch, - parent: b, - idField: "HistoryEntryIDs", - relField: "HistoryEntryList", - many: true, - conv: func(p *HistoryEntry) HistoryEntry { return *p }, - }, - } -} - func (b *meetingUserBuilder) Meeting() *meetingBuilder { return &meetingBuilder{ builder: builder[meetingBuilder, *meetingBuilder, Meeting, *Meeting]{ @@ -4304,6 +4264,19 @@ func (b *meetingUserBuilder) PersonalNoteList() *personalNoteBuilder { } } +func (b *meetingUserBuilder) PollEntitledUserList() *pollEntitledUserBuilder { + return &pollEntitledUserBuilder{ + builder: builder[pollEntitledUserBuilder, *pollEntitledUserBuilder, PollEntitledUser, *PollEntitledUser]{ + fetch: b.fetch, + parent: b, + idField: "PollEntitledUserIDs", + relField: "PollEntitledUserList", + many: true, + conv: func(p *PollEntitledUser) PollEntitledUser { return *p }, + }, + } +} + func (b *meetingUserBuilder) PollOptionList() *pollOptionBuilder { return &pollOptionBuilder{ builder: builder[pollOptionBuilder, *pollOptionBuilder, PollOption, *PollOption]{ @@ -6573,37 +6546,35 @@ func (r *Fetch) PointOfOrderCategory(ids ...int) *pointOfOrderCategoryBuilder { // Poll has all fields from poll. type Poll struct { - AllowInvalid bool - AllowVoteSplit bool - Anonymized bool - BallotIDs []int - BallotUserIDs []int - ConfigID string - ContentObjectID string - EntitledGroupIDs []int - EntitledMeetingUserIDs []int - HistoryEntryIDs []int - ID int - LiveVotingEnabled bool - MeetingID int - OptionIDs []int - ProjectionIDs []int - Published bool - Result string - SequentialNumber int - State dstypes.Poll_State - Title string - Visibility dstypes.PollVisibility - BallotList []PollBallot - BallotUserList []PollBallotUser - Config PollConfigUnion - ContentObject PollContentObjectUnion - EntitledGroupList []Group - EntitledMeetingUserList []MeetingUser - HistoryEntryList []HistoryEntry - Meeting *Meeting - OptionList []PollOption - ProjectionList []Projection + AllowInvalid bool + AllowVoteSplit bool + Anonymized bool + BallotIDs []int + BallotUserIDs []int + ConfigID string + ContentObjectID string + EntitledGroupIDs []int + EntitledUserIDs []int + ID int + LiveVotingEnabled bool + MeetingID int + OptionIDs []int + ProjectionIDs []int + Published bool + Result string + SequentialNumber int + State dstypes.Poll_State + Title string + Visibility dstypes.PollVisibility + BallotList []PollBallot + BallotUserList []PollBallotUser + Config PollConfigUnion + ContentObject PollContentObjectUnion + EntitledGroupList []Group + EntitledUserList []PollEntitledUser + Meeting *Meeting + OptionList []PollOption + ProjectionList []Projection } type pollBuilder struct { @@ -6621,8 +6592,7 @@ func (b *pollBuilder) lazy(ds *Fetch, idI any) *Poll { ds.Poll_ConfigID(id).Lazy(&c.ConfigID) ds.Poll_ContentObjectID(id).Lazy(&c.ContentObjectID) ds.Poll_EntitledGroupIDs(id).Lazy(&c.EntitledGroupIDs) - ds.Poll_EntitledMeetingUserIDs(id).Lazy(&c.EntitledMeetingUserIDs) - ds.Poll_HistoryEntryIDs(id).Lazy(&c.HistoryEntryIDs) + ds.Poll_EntitledUserIDs(id).Lazy(&c.EntitledUserIDs) ds.Poll_ID(id).Lazy(&c.ID) ds.Poll_LiveVotingEnabled(id).Lazy(&c.LiveVotingEnabled) ds.Poll_MeetingID(id).Lazy(&c.MeetingID) @@ -6849,28 +6819,15 @@ func (b *pollBuilder) EntitledGroupList() *groupBuilder { } } -func (b *pollBuilder) EntitledMeetingUserList() *meetingUserBuilder { - return &meetingUserBuilder{ - builder: builder[meetingUserBuilder, *meetingUserBuilder, MeetingUser, *MeetingUser]{ - fetch: b.fetch, - parent: b, - idField: "EntitledMeetingUserIDs", - relField: "EntitledMeetingUserList", - many: true, - conv: func(p *MeetingUser) MeetingUser { return *p }, - }, - } -} - -func (b *pollBuilder) HistoryEntryList() *historyEntryBuilder { - return &historyEntryBuilder{ - builder: builder[historyEntryBuilder, *historyEntryBuilder, HistoryEntry, *HistoryEntry]{ +func (b *pollBuilder) EntitledUserList() *pollEntitledUserBuilder { + return &pollEntitledUserBuilder{ + builder: builder[pollEntitledUserBuilder, *pollEntitledUserBuilder, PollEntitledUser, *PollEntitledUser]{ fetch: b.fetch, parent: b, - idField: "HistoryEntryIDs", - relField: "HistoryEntryList", + idField: "EntitledUserIDs", + relField: "EntitledUserList", many: true, - conv: func(p *HistoryEntry) HistoryEntry { return *p }, + conv: func(p *PollEntitledUser) PollEntitledUser { return *p }, }, } } @@ -6992,15 +6949,15 @@ func (r *Fetch) PollBallot(ids ...int) *pollBallotBuilder { // PollBallotUser has all fields from poll_ballot_user. type PollBallotUser struct { - ActingMeetingUserID int + ActingMeetingUserID dsfetch.Maybe[int] ID int PollBallotID dsfetch.Maybe[int] PollID int - RepresentedMeetingUserID int - ActingMeetingUser *MeetingUser + RepresentedMeetingUserID dsfetch.Maybe[int] + ActingMeetingUser *dsfetch.Maybe[MeetingUser] PollBallot *dsfetch.Maybe[PollBallot] Poll *Poll - RepresentedMeetingUser *MeetingUser + RepresentedMeetingUser *dsfetch.Maybe[MeetingUser] } type pollBallotUserBuilder struct { @@ -7359,17 +7316,78 @@ func (r *Fetch) PollConfigStvScottish(ids ...int) *pollConfigStvScottishBuilder } } -// PollOption has all fields from poll_option. -type PollOption struct { +// PollEntitledUser has all fields from poll_entitled_user. +type PollEntitledUser struct { ID int MeetingUserID dsfetch.Maybe[int] PollID int - Text string - Weight int MeetingUser *dsfetch.Maybe[MeetingUser] Poll *Poll } +type pollEntitledUserBuilder struct { + builder[pollEntitledUserBuilder, *pollEntitledUserBuilder, PollEntitledUser, *PollEntitledUser] +} + +func (b *pollEntitledUserBuilder) lazy(ds *Fetch, idI any) *PollEntitledUser { + id := idI.(int) + c := PollEntitledUser{} + ds.PollEntitledUser_ID(id).Lazy(&c.ID) + ds.PollEntitledUser_MeetingUserID(id).Lazy(&c.MeetingUserID) + ds.PollEntitledUser_PollID(id).Lazy(&c.PollID) + return &c +} + +func (b *pollEntitledUserBuilder) Preload(rel builderWrapperI) *pollEntitledUserBuilder { + b.builder.Preload(rel) + return b +} + +func (b *pollEntitledUserBuilder) MeetingUser() *meetingUserBuilder { + return &meetingUserBuilder{ + builder: builder[meetingUserBuilder, *meetingUserBuilder, MeetingUser, *MeetingUser]{ + fetch: b.fetch, + parent: b, + idField: "MeetingUserID", + relField: "MeetingUser", + conv: func(p *MeetingUser) MeetingUser { return *p }, + }, + } +} + +func (b *pollEntitledUserBuilder) Poll() *pollBuilder { + return &pollBuilder{ + builder: builder[pollBuilder, *pollBuilder, Poll, *Poll]{ + fetch: b.fetch, + parent: b, + idField: "PollID", + relField: "Poll", + conv: func(p *Poll) Poll { return *p }, + }, + } +} + +func (r *Fetch) PollEntitledUser(ids ...int) *pollEntitledUserBuilder { + return &pollEntitledUserBuilder{ + builder: builder[pollEntitledUserBuilder, *pollEntitledUserBuilder, PollEntitledUser, *PollEntitledUser]{ + ids: ids, + fetch: r, + conv: func(p *PollEntitledUser) PollEntitledUser { return *p }, + }, + } +} + +// PollOption has all fields from poll_option. +type PollOption struct { + ContentObjectID dsfetch.Maybe[string] + ID int + PollID int + Text string + Weight int + ContentObject PollOptionContentObjectUnion + Poll *Poll +} + type pollOptionBuilder struct { builder[pollOptionBuilder, *pollOptionBuilder, PollOption, *PollOption] } @@ -7377,8 +7395,8 @@ type pollOptionBuilder struct { func (b *pollOptionBuilder) lazy(ds *Fetch, idI any) *PollOption { id := idI.(int) c := PollOption{} + ds.PollOption_ContentObjectID(id).Lazy(&c.ContentObjectID) ds.PollOption_ID(id).Lazy(&c.ID) - ds.PollOption_MeetingUserID(id).Lazy(&c.MeetingUserID) ds.PollOption_PollID(id).Lazy(&c.PollID) ds.PollOption_Text(id).Lazy(&c.Text) ds.PollOption_Weight(id).Lazy(&c.Weight) @@ -7390,18 +7408,72 @@ func (b *pollOptionBuilder) Preload(rel builderWrapperI) *pollOptionBuilder { return b } -func (b *pollOptionBuilder) MeetingUser() *meetingUserBuilder { - return &meetingUserBuilder{ - builder: builder[meetingUserBuilder, *meetingUserBuilder, MeetingUser, *MeetingUser]{ +func (b *pollOptionBuilder) ContentObject() *pollOptionContentObjectUnionBuilder { + return &pollOptionContentObjectUnionBuilder{ + builder: builder[pollOptionContentObjectUnionBuilder, *pollOptionContentObjectUnionBuilder, PollOptionContentObjectUnion, PollOptionContentObjectUnion]{ fetch: b.fetch, parent: b, - idField: "MeetingUserID", - relField: "MeetingUser", - conv: func(p *MeetingUser) MeetingUser { return *p }, + idField: "ContentObjectID", + relField: "ContentObject", + conv: func(u PollOptionContentObjectUnion) PollOptionContentObjectUnion { return u }, }, } } +type PollOptionContentObjectUnion interface { + isPollOptionContentObjectUnion() +} + +func (*MeetingUser) isPollOptionContentObjectUnion() {} +func (*User) isPollOptionContentObjectUnion() {} + +type pollOptionContentObjectUnionBuilder struct { + builder[pollOptionContentObjectUnionBuilder, *pollOptionContentObjectUnionBuilder, PollOptionContentObjectUnion, PollOptionContentObjectUnion] +} + +func (b *pollOptionContentObjectUnionBuilder) lazy(ds *Fetch, id any) PollOptionContentObjectUnion { + fqid, ok := id.(string) + if !ok { + return nil + } + + collection, idStr, ok := strings.Cut(fqid, "/") + if !ok { + return nil + } + + intId, err := strconv.Atoi(idStr) + if err != nil { + return nil + } + + switch collection { + case "meeting_user": + builder := &meetingUserBuilder{ + builder: builder[meetingUserBuilder, *meetingUserBuilder, MeetingUser, *MeetingUser]{ + fetch: ds, + conv: func(p *MeetingUser) MeetingUser { return *p }, + }, + } + return builder.lazy(ds, intId) + case "user": + builder := &userBuilder{ + builder: builder[userBuilder, *userBuilder, User, *User]{ + fetch: ds, + conv: func(p *User) User { return *p }, + }, + } + return builder.lazy(ds, intId) + } + + return nil +} + +func (b *pollOptionContentObjectUnionBuilder) Preload(rel builderWrapperI) *pollOptionContentObjectUnionBuilder { + b.builder.Preload(rel) + return b +} + func (b *pollOptionBuilder) Poll() *pollBuilder { return &pollBuilder{ builder: builder[pollBuilder, *pollBuilder, Poll, *Poll]{ @@ -8719,6 +8791,7 @@ func (r *Fetch) Theme(ids ...int) *themeBuilder { type Topic struct { AgendaItemID int AttachmentMeetingMediafileIDs []int + HistoryEntryIDs []int ID int ListOfSpeakersID int MeetingID int @@ -8729,6 +8802,7 @@ type Topic struct { Title string AgendaItem *AgendaItem AttachmentMeetingMediafileList []MeetingMediafile + HistoryEntryList []HistoryEntry ListOfSpeakers *ListOfSpeakers Meeting *Meeting PollList []Poll @@ -8744,6 +8818,7 @@ func (b *topicBuilder) lazy(ds *Fetch, idI any) *Topic { c := Topic{} ds.Topic_AgendaItemID(id).Lazy(&c.AgendaItemID) ds.Topic_AttachmentMeetingMediafileIDs(id).Lazy(&c.AttachmentMeetingMediafileIDs) + ds.Topic_HistoryEntryIDs(id).Lazy(&c.HistoryEntryIDs) ds.Topic_ID(id).Lazy(&c.ID) ds.Topic_ListOfSpeakersID(id).Lazy(&c.ListOfSpeakersID) ds.Topic_MeetingID(id).Lazy(&c.MeetingID) @@ -8785,6 +8860,19 @@ func (b *topicBuilder) AttachmentMeetingMediafileList() *meetingMediafileBuilder } } +func (b *topicBuilder) HistoryEntryList() *historyEntryBuilder { + return &historyEntryBuilder{ + builder: builder[historyEntryBuilder, *historyEntryBuilder, HistoryEntry, *HistoryEntry]{ + fetch: b.fetch, + parent: b, + idField: "HistoryEntryIDs", + relField: "HistoryEntryList", + many: true, + conv: func(p *HistoryEntry) HistoryEntry { return *p }, + }, + } +} + func (b *topicBuilder) ListOfSpeakers() *listOfSpeakersBuilder { return &listOfSpeakersBuilder{ builder: builder[listOfSpeakersBuilder, *listOfSpeakersBuilder, ListOfSpeakers, *ListOfSpeakers]{ @@ -8873,6 +8961,7 @@ type User struct { OrganizationID int OrganizationManagementLevel dstypes.User_OrganizationManagementLevel Password string + PollOptionIDs []int Pronoun string SamlID string Title string @@ -8887,6 +8976,7 @@ type User struct { MeetingList []Meeting MeetingUserList []MeetingUser Organization *Organization + PollOptionList []PollOption } type userBuilder struct { @@ -8922,6 +9012,7 @@ func (b *userBuilder) lazy(ds *Fetch, idI any) *User { ds.User_OrganizationID(id).Lazy(&c.OrganizationID) ds.User_OrganizationManagementLevel(id).Lazy(&c.OrganizationManagementLevel) ds.User_Password(id).Lazy(&c.Password) + ds.User_PollOptionIDs(id).Lazy(&c.PollOptionIDs) ds.User_Pronoun(id).Lazy(&c.Pronoun) ds.User_SamlID(id).Lazy(&c.SamlID) ds.User_Title(id).Lazy(&c.Title) @@ -9061,6 +9152,19 @@ func (b *userBuilder) Organization() *organizationBuilder { } } +func (b *userBuilder) PollOptionList() *pollOptionBuilder { + return &pollOptionBuilder{ + builder: builder[pollOptionBuilder, *pollOptionBuilder, PollOption, *PollOption]{ + fetch: b.fetch, + parent: b, + idField: "PollOptionIDs", + relField: "PollOptionList", + many: true, + conv: func(p *PollOption) PollOption { return *p }, + }, + } +} + func (r *Fetch) User(ids ...int) *userBuilder { return &userBuilder{ builder: builder[userBuilder, *userBuilder, User, *User]{ diff --git a/datastore/field_def.go b/datastore/field_def.go index 0ddf5c95f..4d3fbe553 100644 --- a/datastore/field_def.go +++ b/datastore/field_def.go @@ -11,7 +11,7 @@ var collectionFields = map[string][]string{ "committee": {"all_child_ids", "all_parent_ids", "child_ids", "default_meeting_id", "description", "external_id", "forward_to_committee_ids", "id", "manager_ids", "meeting_ids", "name", "native_user_ids", "organization_id", "organization_tag_ids", "parent_id", "receive_forwardings_from_committee_ids", "user_ids"}, "gender": {"id", "name", "organization_id", "user_ids"}, "group": {"admin_group_for_meeting_id", "anonymous_group_for_meeting_id", "default_group_for_meeting_id", "external_id", "id", "meeting_id", "meeting_mediafile_access_group_ids", "meeting_mediafile_inherited_access_group_ids", "meeting_user_ids", "name", "permissions", "poll_ids", "read_chat_group_ids", "read_comment_section_ids", "used_in_meeting_poll_default_ids", "weight", "write_chat_group_ids", "write_comment_section_ids"}, - "history_entry": {"entries", "id", "meeting_id", "model_id", "original_model_id", "position_id", "structured_information"}, + "history_entry": {"entries", "id", "meeting_id", "model_id", "original_model_id", "position_id"}, "history_position": {"entry_ids", "id", "original_user_id", "timestamp", "user_id"}, "import_preview": {"created", "id", "name", "result", "state"}, "list_of_speakers": {"closed", "content_object_id", "id", "meeting_id", "moderator_notes", "projection_ids", "sequential_number", "speaker_ids", "structure_level_list_of_speakers_ids"}, @@ -19,7 +19,7 @@ var collectionFields = map[string][]string{ "meeting": {"admin_group_id", "agenda_enable_numbering", "agenda_item_creation", "agenda_item_ids", "agenda_new_items_default_visibility", "agenda_number_prefix", "agenda_numeral_system", "agenda_show_internal_items_on_projector", "agenda_show_subtitles", "agenda_show_topic_navigation_on_detail_view", "all_projection_ids", "anonymous_group_id", "applause_enable", "applause_max_amount", "applause_min_amount", "applause_particle_image_url", "applause_show_level", "applause_timeout", "applause_type", "assignment_candidate_ids", "assignment_ids", "assignment_poll_add_candidates_to_list_of_speakers", "assignment_poll_config_id", "assignment_poll_default_method", "assignments_export_preamble", "assignments_export_title", "chat_group_ids", "chat_message_ids", "committee_id", "conference_auto_connect", "conference_auto_connect_next_speakers", "conference_enable_helpdesk", "conference_los_restriction", "conference_open_microphone", "conference_open_video", "conference_show", "conference_stream_poster_url", "conference_stream_url", "custom_translations", "default_group_id", "default_meeting_for_committee_id", "default_projector_agenda_item_list_ids", "default_projector_amendment_ids", "default_projector_assignment_ids", "default_projector_assignment_poll_ids", "default_projector_countdown_ids", "default_projector_current_los_ids", "default_projector_list_of_speakers_ids", "default_projector_mediafile_ids", "default_projector_message_ids", "default_projector_motion_block_ids", "default_projector_motion_ids", "default_projector_motion_poll_ids", "default_projector_topic_ids", "default_projector_topic_poll_ids", "description", "enable_anonymous", "end_time", "export_csv_encoding", "export_csv_separator", "export_pdf_fontsize", "export_pdf_line_height", "export_pdf_page_margin_bottom", "export_pdf_page_margin_left", "export_pdf_page_margin_right", "export_pdf_page_margin_top", "export_pdf_pagenumber_alignment", "export_pdf_pagesize", "external_id", "font_bold_id", "font_bold_italic_id", "font_chyron_speaker_name_id", "font_italic_id", "font_monospace_id", "font_projector_h1_id", "font_projector_h2_id", "font_regular_id", "forwarded_motion_ids", "group_ids", "id", "imported_at", "is_active_in_organization_id", "is_archived_in_organization_id", "jitsi_domain", "jitsi_room_name", "jitsi_room_password", "language", "list_of_speakers_allow_multiple_speakers", "list_of_speakers_amount_last_on_projector", "list_of_speakers_amount_next_on_projector", "list_of_speakers_can_create_point_of_order_for_others", "list_of_speakers_can_set_contribution_self", "list_of_speakers_closing_disables_point_of_order", "list_of_speakers_countdown_id", "list_of_speakers_couple_countdown", "list_of_speakers_default_structure_level_time", "list_of_speakers_enable_interposed_question", "list_of_speakers_enable_point_of_order_categories", "list_of_speakers_enable_point_of_order_speakers", "list_of_speakers_enable_pro_contra_speech", "list_of_speakers_hide_contribution_count", "list_of_speakers_ids", "list_of_speakers_initially_closed", "list_of_speakers_intervention_time", "list_of_speakers_present_users_only", "list_of_speakers_show_amount_of_speakers_on_slide", "list_of_speakers_show_first_contribution", "list_of_speakers_speaker_note_for_everyone", "location", "locked_from_inside", "logo_pdf_ballot_paper_id", "logo_pdf_footer_l_id", "logo_pdf_footer_r_id", "logo_pdf_header_l_id", "logo_pdf_header_r_id", "logo_projector_header_id", "logo_projector_main_id", "logo_web_header_id", "mediafile_ids", "meeting_mediafile_ids", "meeting_user_ids", "motion_block_ids", "motion_category_ids", "motion_change_recommendation_ids", "motion_comment_ids", "motion_comment_section_ids", "motion_editor_ids", "motion_ids", "motion_poll_config_id", "motion_state_ids", "motion_submitter_ids", "motion_supporter_ids", "motion_workflow_ids", "motion_working_group_speaker_ids", "motions_amendments_enabled", "motions_amendments_in_main_list", "motions_amendments_multiple_paragraphs", "motions_amendments_of_amendments", "motions_amendments_prefix", "motions_amendments_text_mode", "motions_block_slide_columns", "motions_create_enable_additional_submitter_text", "motions_default_amendment_workflow_id", "motions_default_line_numbering", "motions_default_sorting", "motions_default_workflow_id", "motions_enable_editor", "motions_enable_origin_motion_display", "motions_enable_reason_on_projector", "motions_enable_recommendation_on_projector", "motions_enable_restricted_editor_for_manager", "motions_enable_restricted_editor_for_non_manager", "motions_enable_sidebox_on_projector", "motions_enable_text_on_projector", "motions_enable_working_group_speaker", "motions_export_follow_recommendation", "motions_export_preamble", "motions_export_submitter_recommendation", "motions_export_title", "motions_hide_metadata_background", "motions_line_length", "motions_number_min_digits", "motions_number_type", "motions_number_with_blank", "motions_origin_motion_toggle_default", "motions_preamble", "motions_reason_required", "motions_recommendation_text_mode", "motions_recommendations_by", "motions_show_referring_motions", "motions_show_sequential_number", "motions_supporters_min_amount", "name", "organization_tag_ids", "personal_note_ids", "point_of_order_category_ids", "poll_countdown_id", "poll_couple_countdown", "poll_default_allow_invalid", "poll_default_allow_vote_split", "poll_default_ids", "poll_default_live_voting_enabled", "poll_default_required_majority", "poll_enable_max_votes_per_option", "poll_enable_max_yes_votes", "poll_ids", "poll_projection_max_columns", "poll_projection_name_order_first", "present_user_ids", "projection_ids", "projector_countdown_default_time", "projector_countdown_ids", "projector_countdown_warning_time", "projector_ids", "projector_message_ids", "reference_projector_id", "relevant_history_entry_ids", "speaker_ids", "start_time", "structure_level_ids", "structure_level_list_of_speakers_ids", "tag_ids", "template_for_organization_id", "time_zone", "topic_ids", "topic_poll_config_id", "topic_poll_default_method", "user_ids", "users_allow_self_set_present", "users_email_body", "users_email_replyto", "users_email_sender", "users_email_subject", "users_enable_presence_view", "users_enable_vote_delegations", "users_enable_vote_weight", "users_forbid_delegator_as_submitter", "users_forbid_delegator_as_supporter", "users_forbid_delegator_in_list_of_speakers", "users_forbid_delegator_to_vote", "users_pdf_welcometext", "users_pdf_welcometitle", "users_pdf_wlan_encryption", "users_pdf_wlan_password", "users_pdf_wlan_ssid", "users_vote_delegations_max_amount", "welcome_text", "welcome_title"}, "meeting_mediafile": {"access_group_ids", "attachment_ids", "id", "inherited_access_group_ids", "is_public", "list_of_speakers_id", "mediafile_id", "meeting_id", "projection_ids", "used_as_font_bold_in_meeting_id", "used_as_font_bold_italic_in_meeting_id", "used_as_font_chyron_speaker_name_in_meeting_id", "used_as_font_italic_in_meeting_id", "used_as_font_monospace_in_meeting_id", "used_as_font_projector_h1_in_meeting_id", "used_as_font_projector_h2_in_meeting_id", "used_as_font_regular_in_meeting_id", "used_as_logo_pdf_ballot_paper_in_meeting_id", "used_as_logo_pdf_footer_l_in_meeting_id", "used_as_logo_pdf_footer_r_in_meeting_id", "used_as_logo_pdf_header_l_in_meeting_id", "used_as_logo_pdf_header_r_in_meeting_id", "used_as_logo_projector_header_in_meeting_id", "used_as_logo_projector_main_in_meeting_id", "used_as_logo_web_header_in_meeting_id"}, "meeting_poll_default": {"allow_abstain", "allow_nota", "display_chart", "group_ids", "id", "meeting_id", "onehundred_percent_base", "sort_result_by_votes", "strike_out", "used_as_assignment_poll_config_in_meeting_id", "used_as_motion_poll_config_in_meeting_id", "used_as_topic_poll_config_in_meeting_id", "visibility"}, - "meeting_user": {"about_me", "acting_ballot_ids", "assignment_candidate_ids", "chat_message_ids", "comment", "entitled_at_poll_ids", "group_ids", "history_entry_ids", "id", "locked_out", "meeting_id", "motion_editor_ids", "motion_submitter_ids", "motion_supporter_ids", "motion_working_group_speaker_ids", "number", "personal_note_ids", "poll_option_ids", "represented_ballot_ids", "speaker_ids", "structure_level_ids", "user_id", "vote_delegated_to_ids", "vote_delegations_from_ids", "vote_weight"}, + "meeting_user": {"about_me", "acting_ballot_ids", "assignment_candidate_ids", "chat_message_ids", "comment", "group_ids", "id", "locked_out", "meeting_id", "motion_editor_ids", "motion_submitter_ids", "motion_supporter_ids", "motion_working_group_speaker_ids", "number", "personal_note_ids", "poll_entitled_user_ids", "poll_option_ids", "represented_ballot_ids", "speaker_ids", "structure_level_ids", "user_id", "vote_delegated_to_ids", "vote_delegations_from_ids", "vote_weight"}, "motion": {"additional_submitter", "agenda_item_id", "all_derived_motion_ids", "all_origin_ids", "amendment_ids", "amendment_paragraphs", "attachment_meeting_mediafile_ids", "block_id", "category_id", "category_weight", "change_recommendation_ids", "comment_ids", "created", "derived_motion_ids", "diff_version", "editor_ids", "forwarded", "history_entry_ids", "id", "identical_motion_ids", "last_modified", "lead_motion_id", "list_of_speakers_id", "marked_forwarded", "meeting_id", "modified_final_version", "number", "number_value", "origin_id", "origin_meeting_id", "personal_note_ids", "poll_ids", "projection_ids", "reason", "recommendation_extension", "recommendation_extension_reference_ids", "recommendation_id", "referenced_in_motion_recommendation_extension_ids", "referenced_in_motion_state_extension_ids", "sequential_number", "sort_child_ids", "sort_parent_id", "sort_weight", "start_line_number", "state_extension", "state_extension_reference_ids", "state_id", "submitter_ids", "supporter_ids", "tag_ids", "text", "text_hash", "title", "workflow_timestamp", "working_group_speaker_ids"}, "motion_block": {"agenda_item_id", "id", "internal", "list_of_speakers_id", "meeting_id", "motion_ids", "projection_ids", "sequential_number", "title"}, "motion_category": {"child_ids", "id", "level", "meeting_id", "motion_ids", "name", "parent_id", "prefix", "sequential_number", "weight"}, @@ -36,7 +36,7 @@ var collectionFields = map[string][]string{ "organization_tag": {"color", "id", "name", "organization_id", "tagged_ids"}, "personal_note": {"content_object_id", "id", "meeting_id", "meeting_user_id", "note", "star"}, "point_of_order_category": {"id", "meeting_id", "rank", "speaker_ids", "text"}, - "poll": {"allow_invalid", "allow_vote_split", "anonymized", "ballot_ids", "ballot_user_ids", "config_id", "content_object_id", "entitled_group_ids", "entitled_meeting_user_ids", "history_entry_ids", "id", "live_voting_enabled", "meeting_id", "option_ids", "projection_ids", "published", "result", "sequential_number", "state", "title", "visibility"}, + "poll": {"allow_invalid", "allow_vote_split", "anonymized", "ballot_ids", "ballot_user_ids", "config_id", "content_object_id", "entitled_group_ids", "entitled_user_ids", "id", "live_voting_enabled", "meeting_id", "option_ids", "projection_ids", "published", "result", "sequential_number", "state", "title", "visibility"}, "poll_ballot": {"id", "poll_ballot_user_id", "poll_id", "split", "value", "weight"}, "poll_ballot_user": {"acting_meeting_user_id", "id", "poll_ballot_id", "poll_id", "represented_meeting_user_id"}, "poll_config_approval": {"allow_abstain", "id", "onehundred_percent_base", "poll_id", "required_majority"}, @@ -44,7 +44,8 @@ var collectionFields = map[string][]string{ "poll_config_rating_score": {"id", "max_options_amount", "max_vote_sum", "max_votes_per_option", "min_options_amount", "min_vote_sum", "onehundred_percent_base", "poll_id", "required_majority"}, "poll_config_selection": {"allow_nota", "display_chart", "id", "max_options_amount", "min_options_amount", "onehundred_percent_base", "poll_id", "required_majority", "strike_out"}, "poll_config_stv_scottish": {"id", "poll_id", "posts"}, - "poll_option": {"id", "meeting_user_id", "poll_id", "text", "weight"}, + "poll_entitled_user": {"id", "meeting_user_id", "poll_id"}, + "poll_option": {"content_object_id", "id", "poll_id", "text", "weight"}, "projection": {"content_object_id", "current_projector_id", "history_projector_id", "id", "meeting_id", "options", "preview_projector_id", "stable", "type", "weight"}, "projector": {"aspect_ratio_denominator", "aspect_ratio_numerator", "background_color", "chyron_background_color", "chyron_background_color_2", "chyron_font_color", "chyron_font_color_2", "color", "current_projection_ids", "header_background_color", "header_font_color", "header_h1_color", "history_projection_ids", "id", "is_internal", "meeting_id", "name", "preview_projection_ids", "scale", "scroll", "sequential_number", "show_clock", "show_header_footer", "show_logo", "show_title", "used_as_default_projector_for_agenda_item_list_in_meeting_id", "used_as_default_projector_for_amendment_in_meeting_id", "used_as_default_projector_for_assignment_in_meeting_id", "used_as_default_projector_for_assignment_poll_in_meeting_id", "used_as_default_projector_for_countdown_in_meeting_id", "used_as_default_projector_for_current_los_in_meeting_id", "used_as_default_projector_for_list_of_speakers_in_meeting_id", "used_as_default_projector_for_mediafile_in_meeting_id", "used_as_default_projector_for_message_in_meeting_id", "used_as_default_projector_for_motion_block_in_meeting_id", "used_as_default_projector_for_motion_in_meeting_id", "used_as_default_projector_for_motion_poll_in_meeting_id", "used_as_default_projector_for_topic_in_meeting_id", "used_as_default_projector_for_topic_poll_in_meeting_id", "used_as_reference_projector_meeting_id", "width"}, "projector_countdown": {"countdown_time", "default_time", "description", "id", "meeting_id", "projection_ids", "running", "title", "used_as_list_of_speakers_countdown_meeting_id", "used_as_poll_countdown_meeting_id"}, @@ -54,6 +55,6 @@ var collectionFields = map[string][]string{ "structure_level_list_of_speakers": {"additional_time", "current_start_time", "id", "initial_time", "list_of_speakers_id", "meeting_id", "remaining_time", "speaker_ids", "structure_level_id"}, "tag": {"id", "meeting_id", "name", "tagged_ids"}, "theme": {"abstain", "accent_100", "accent_200", "accent_300", "accent_400", "accent_50", "accent_500", "accent_600", "accent_700", "accent_800", "accent_900", "accent_a100", "accent_a200", "accent_a400", "accent_a700", "headbar", "id", "name", "no", "organization_id", "primary_100", "primary_200", "primary_300", "primary_400", "primary_50", "primary_500", "primary_600", "primary_700", "primary_800", "primary_900", "primary_a100", "primary_a200", "primary_a400", "primary_a700", "theme_for_organization_id", "warn_100", "warn_200", "warn_300", "warn_400", "warn_50", "warn_500", "warn_600", "warn_700", "warn_800", "warn_900", "warn_a100", "warn_a200", "warn_a400", "warn_a700", "yes"}, - "topic": {"agenda_item_id", "attachment_meeting_mediafile_ids", "id", "list_of_speakers_id", "meeting_id", "poll_ids", "projection_ids", "sequential_number", "text", "title"}, - "user": {"can_change_own_password", "committee_ids", "committee_management_ids", "default_password", "default_vote_weight", "email", "external", "first_name", "gender_id", "history_entry_ids", "history_position_ids", "home_committee_id", "id", "is_active", "is_demo_user", "is_physical_person", "is_present_in_meeting_ids", "last_email_sent", "last_login", "last_name", "meeting_ids", "meeting_user_ids", "member_number", "organization_id", "organization_management_level", "password", "pronoun", "saml_id", "title", "username"}, + "topic": {"agenda_item_id", "attachment_meeting_mediafile_ids", "history_entry_ids", "id", "list_of_speakers_id", "meeting_id", "poll_ids", "projection_ids", "sequential_number", "text", "title"}, + "user": {"can_change_own_password", "committee_ids", "committee_management_ids", "default_password", "default_vote_weight", "email", "external", "first_name", "gender_id", "history_entry_ids", "history_position_ids", "home_committee_id", "id", "is_active", "is_demo_user", "is_physical_person", "is_present_in_meeting_ids", "last_email_sent", "last_login", "last_name", "meeting_ids", "meeting_user_ids", "member_number", "organization_id", "organization_management_level", "password", "poll_option_ids", "pronoun", "saml_id", "title", "username"}, } diff --git a/datastore/pgtest/sql/schema_relational.sql b/datastore/pgtest/sql/schema_relational.sql index 8cefffc38..b02feab27 100644 --- a/datastore/pgtest/sql/schema_relational.sql +++ b/datastore/pgtest/sql/schema_relational.sql @@ -1,7 +1,7 @@ -- schema_relational.sql for initial database setup OpenSlides -- Code generated. DO NOT EDIT. --- MODELS_YML_CHECKSUM = '97d3333defc0706b67f485a5a5ffe20f' +-- MODELS_YML_CHECKSUM = '156fc394cbf7dcd659047e24fe3d696a' -- ENUM definitions @@ -1061,20 +1061,17 @@ CREATE TABLE group_t ( CREATE TABLE history_entry_t ( id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY NOT NULL, entries text[], - structured_information jsonb, original_model_id varchar(256), model_id varchar(100), model_id_assignment_id integer CONSTRAINT generated_always_as_history_entry_model_id_assignment_id GENERATED ALWAYS AS (CASE WHEN split_part(model_id, '/', 1) = 'assignment' THEN cast(split_part(model_id, '/', 2) AS INTEGER) ELSE null END) STORED, - model_id_meeting_user_id integer - CONSTRAINT generated_always_as_history_entry_model_id_meeting_user_id GENERATED ALWAYS AS (CASE WHEN split_part(model_id, '/', 1) = 'meeting_user' THEN cast(split_part(model_id, '/', 2) AS INTEGER) ELSE null END) STORED, model_id_motion_id integer CONSTRAINT generated_always_as_history_entry_model_id_motion_id GENERATED ALWAYS AS (CASE WHEN split_part(model_id, '/', 1) = 'motion' THEN cast(split_part(model_id, '/', 2) AS INTEGER) ELSE null END) STORED, - model_id_poll_id integer - CONSTRAINT generated_always_as_history_entry_model_id_poll_id GENERATED ALWAYS AS (CASE WHEN split_part(model_id, '/', 1) = 'poll' THEN cast(split_part(model_id, '/', 2) AS INTEGER) ELSE null END) STORED, + model_id_topic_id integer + CONSTRAINT generated_always_as_history_entry_model_id_topic_id GENERATED ALWAYS AS (CASE WHEN split_part(model_id, '/', 1) = 'topic' THEN cast(split_part(model_id, '/', 2) AS INTEGER) ELSE null END) STORED, model_id_user_id integer CONSTRAINT generated_always_as_history_entry_model_id_user_id GENERATED ALWAYS AS (CASE WHEN split_part(model_id, '/', 1) = 'user' THEN cast(split_part(model_id, '/', 2) AS INTEGER) ELSE null END) STORED, - CONSTRAINT valid_history_entry_model_id_part1 CHECK (split_part(model_id, '/', 1) IN ('assignment','meeting_user','motion','poll','user')), + CONSTRAINT valid_history_entry_model_id_part1 CHECK (split_part(model_id, '/', 1) IN ('assignment','motion','topic','user')), position_id integer CONSTRAINT required_history_entry_position_id NOT NULL, meeting_id integer @@ -2045,10 +2042,8 @@ CREATE TABLE poll_ballot_user_t ( id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY NOT NULL, poll_id integer CONSTRAINT required_poll_ballot_user_poll_id NOT NULL, - acting_meeting_user_id integer - CONSTRAINT required_poll_ballot_user_acting_meeting_user_id NOT NULL, - represented_meeting_user_id integer - CONSTRAINT required_poll_ballot_user_represented_meeting_user_id NOT NULL, + acting_meeting_user_id integer, + represented_meeting_user_id integer, CONSTRAINT unique_poll_ballot_user_poll_id_represented_meeting_user_id UNIQUE (poll_id, represented_meeting_user_id) ); @@ -2137,13 +2132,28 @@ CREATE TABLE poll_config_stv_scottish_t ( +CREATE TABLE poll_entitled_user_t ( + id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY NOT NULL, + poll_id integer + CONSTRAINT required_poll_entitled_user_poll_id NOT NULL, + meeting_user_id integer +); + + + + CREATE TABLE poll_option_t ( id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY NOT NULL, poll_id integer CONSTRAINT required_poll_option_poll_id NOT NULL, weight integer, text varchar(256), - meeting_user_id integer + content_object_id varchar(100), + content_object_id_meeting_user_id integer + CONSTRAINT generated_always_as_poll_option_content_object_id_meetinab51685 GENERATED ALWAYS AS (CASE WHEN split_part(content_object_id, '/', 1) = 'meeting_user' THEN cast(split_part(content_object_id, '/', 2) AS INTEGER) ELSE null END) STORED, + content_object_id_user_id integer + CONSTRAINT generated_always_as_poll_option_content_object_id_user_id GENERATED ALWAYS AS (CASE WHEN split_part(content_object_id, '/', 1) = 'user' THEN cast(split_part(content_object_id, '/', 2) AS INTEGER) ELSE null END) STORED, + CONSTRAINT valid_poll_option_content_object_id_part1 CHECK (split_part(content_object_id, '/', 1) IN ('meeting_user','user')) ); @@ -2810,22 +2820,6 @@ CREATE TABLE nm_meeting_user_vote_delegated_to_ids_meeting_user_t ( CREATE INDEX idx_nm_meeting_user_vote_delegated_to_ids_meeting_user_tee86852 ON nm_meeting_user_vote_delegated_to_ids_meeting_user_t (vote_delegations_from_id); CREATE INDEX idx_nm_meeting_user_vote_delegated_to_ids_meeting_user_t54a80eb ON nm_meeting_user_vote_delegated_to_ids_meeting_user_t (vote_delegated_to_id); -CREATE TABLE nm_meeting_user_entitled_at_poll_ids_poll_t ( - meeting_user_id integer - CONSTRAINT required_nm_meeting_user_entitled_at_poll_ids_poll_t_meef9cfab5 NOT NULL - CONSTRAINT fk_nm_meeting_user_entitled_at_poll_ids_poll_t_meeting_u4b04998 REFERENCES meeting_user_t (id) - ON DELETE CASCADE - INITIALLY DEFERRED, - poll_id integer - CONSTRAINT required_nm_meeting_user_entitled_at_poll_ids_poll_t_poll_id NOT NULL - CONSTRAINT fk_nm_meeting_user_entitled_at_poll_ids_poll_t_poll_id_pda65800 REFERENCES poll_t (id) - ON DELETE CASCADE - INITIALLY DEFERRED, - CONSTRAINT pk_nm_meeting_user_entitled_at_poll_ids_poll_t PRIMARY KEY (meeting_user_id, poll_id) -); -CREATE INDEX idx_nm_meeting_user_entitled_at_poll_ids_poll_t_meeting_user_id ON nm_meeting_user_entitled_at_poll_ids_poll_t (meeting_user_id); -CREATE INDEX idx_nm_meeting_user_entitled_at_poll_ids_poll_t_poll_id ON nm_meeting_user_entitled_at_poll_ids_poll_t (poll_id); - CREATE TABLE nm_meeting_user_structure_level_ids_structure_level_t ( meeting_user_id integer CONSTRAINT required_nm_meeting_user_structure_level_ids_structure_l456f3b7 NOT NULL @@ -3221,14 +3215,13 @@ CREATE VIEW "meeting_user" AS SELECT *, (select array_agg(a.id ORDER BY a.id) from assignment_candidate_t a where a.meeting_user_id = m.id) as assignment_candidate_ids, (select array_agg(n.vote_delegated_to_id ORDER BY n.vote_delegated_to_id) from nm_meeting_user_vote_delegated_to_ids_meeting_user_t n where n.vote_delegations_from_id = m.id) as vote_delegated_to_ids, (select array_agg(n.vote_delegations_from_id ORDER BY n.vote_delegations_from_id) from nm_meeting_user_vote_delegated_to_ids_meeting_user_t n where n.vote_delegated_to_id = m.id) as vote_delegations_from_ids, -(select array_agg(p.id ORDER BY p.id) from poll_option_t p where p.meeting_user_id = m.id) as poll_option_ids, +(select array_agg(p.id ORDER BY p.id) from poll_option_t p where p.content_object_id_meeting_user_id = m.id) as poll_option_ids, (select array_agg(p.id ORDER BY p.id) from poll_ballot_user_t p where p.acting_meeting_user_id = m.id) as acting_ballot_ids, (select array_agg(p.id ORDER BY p.id) from poll_ballot_user_t p where p.represented_meeting_user_id = m.id) as represented_ballot_ids, -(select array_agg(n.poll_id ORDER BY n.poll_id) from nm_meeting_user_entitled_at_poll_ids_poll_t n where n.meeting_user_id = m.id) as entitled_at_poll_ids, +(select array_agg(p.id ORDER BY p.id) from poll_entitled_user_t p where p.meeting_user_id = m.id) as poll_entitled_user_ids, (select array_agg(c.id ORDER BY c.id) from chat_message_t c where c.meeting_user_id = m.id) as chat_message_ids, (select array_agg(n.group_id ORDER BY n.group_id) from nm_group_meeting_user_ids_meeting_user_t n where n.meeting_user_id = m.id) as group_ids, -(select array_agg(n.structure_level_id ORDER BY n.structure_level_id) from nm_meeting_user_structure_level_ids_structure_level_t n where n.meeting_user_id = m.id) as structure_level_ids, -(select array_agg(h.id ORDER BY h.id) from history_entry_t h where h.model_id_meeting_user_id = m.id) as history_entry_ids +(select array_agg(n.structure_level_id ORDER BY n.structure_level_id) from nm_meeting_user_structure_level_ids_structure_level_t n where n.meeting_user_id = m.id) as structure_level_ids FROM meeting_user_t m; @@ -3348,9 +3341,8 @@ CREATE VIEW "poll" AS SELECT *, (select array_agg(pb.id ORDER BY pb.id) from poll_ballot_t pb where pb.poll_id = p.id) as ballot_ids, (select array_agg(pb.id ORDER BY pb.id) from poll_ballot_user_t pb where pb.poll_id = p.id) as ballot_user_ids, (select array_agg(n.group_id ORDER BY n.group_id) from nm_group_poll_ids_poll_t n where n.poll_id = p.id) as entitled_group_ids, -(select array_agg(n.meeting_user_id ORDER BY n.meeting_user_id) from nm_meeting_user_entitled_at_poll_ids_poll_t n where n.poll_id = p.id) as entitled_meeting_user_ids, -(select array_agg(pt.id ORDER BY pt.id) from projection_t pt where pt.content_object_id_poll_id = p.id) as projection_ids, -(select array_agg(h.id ORDER BY h.id) from history_entry_t h where h.model_id_poll_id = p.id) as history_entry_ids +(select array_agg(pe.id ORDER BY pe.id) from poll_entitled_user_t pe where pe.poll_id = p.id) as entitled_user_ids, +(select array_agg(pt.id ORDER BY pt.id) from projection_t pt where pt.content_object_id_poll_id = p.id) as projection_ids FROM poll_t p; @@ -3387,6 +3379,9 @@ CREATE VIEW "poll_config_stv_scottish" AS SELECT *, FROM poll_config_stv_scottish_t p; +CREATE VIEW "poll_entitled_user" AS SELECT * FROM poll_entitled_user_t p; + + CREATE VIEW "poll_option" AS SELECT * FROM poll_option_t p; @@ -3442,7 +3437,8 @@ CREATE VIEW "topic" AS SELECT *, (select a.id from agenda_item_t a where a.content_object_id_topic_id = t.id) as agenda_item_id, (select l.id from list_of_speakers_t l where l.content_object_id_topic_id = t.id) as list_of_speakers_id, (select array_agg(p.id ORDER BY p.id) from poll_t p where p.content_object_id_topic_id = t.id) as poll_ids, -(select array_agg(p.id ORDER BY p.id) from projection_t p where p.content_object_id_topic_id = t.id) as projection_ids +(select array_agg(p.id ORDER BY p.id) from projection_t p where p.content_object_id_topic_id = t.id) as projection_ids, +(select array_agg(h.id ORDER BY h.id) from history_entry_t h where h.model_id_topic_id = t.id) as history_entry_ids FROM topic_t t; @@ -3475,6 +3471,7 @@ CREATE VIEW "user" AS SELECT *, , (select array_agg(n.committee_id ORDER BY n.committee_id) from nm_committee_manager_ids_user_t n where n.user_id = u.id) as committee_management_ids, (select array_agg(m.id ORDER BY m.id) from meeting_user_t m where m.user_id = u.id) as meeting_user_ids, +(select array_agg(p.id ORDER BY p.id) from poll_option_t p where p.content_object_id_user_id = u.id) as poll_option_ids, (select array_agg(h.id ORDER BY h.id) from history_position_t h where h.user_id = u.id) as history_position_ids, (select array_agg(h.id ORDER BY h.id) from history_entry_t h where h.model_id_user_id = u.id) as history_entry_ids, ( @@ -3538,12 +3535,10 @@ CREATE INDEX idx_group_t_meeting_id ON group_t (meeting_id); ALTER TABLE history_entry_t ADD CONSTRAINT fk_history_entry_t_model_id_assignment_id_assignment_t_id FOREIGN KEY(model_id_assignment_id) REFERENCES assignment_t(id) INITIALLY DEFERRED; CREATE INDEX idx_history_entry_t_model_id_assignment_id ON history_entry_t (model_id_assignment_id); -ALTER TABLE history_entry_t ADD CONSTRAINT fk_history_entry_t_model_id_meeting_user_id_meeting_user_t_id FOREIGN KEY(model_id_meeting_user_id) REFERENCES meeting_user_t(id) INITIALLY DEFERRED; -CREATE INDEX idx_history_entry_t_model_id_meeting_user_id ON history_entry_t (model_id_meeting_user_id); ALTER TABLE history_entry_t ADD CONSTRAINT fk_history_entry_t_model_id_motion_id_motion_t_id FOREIGN KEY(model_id_motion_id) REFERENCES motion_t(id) INITIALLY DEFERRED; CREATE INDEX idx_history_entry_t_model_id_motion_id ON history_entry_t (model_id_motion_id); -ALTER TABLE history_entry_t ADD CONSTRAINT fk_history_entry_t_model_id_poll_id_poll_t_id FOREIGN KEY(model_id_poll_id) REFERENCES poll_t(id) INITIALLY DEFERRED; -CREATE INDEX idx_history_entry_t_model_id_poll_id ON history_entry_t (model_id_poll_id); +ALTER TABLE history_entry_t ADD CONSTRAINT fk_history_entry_t_model_id_topic_id_topic_t_id FOREIGN KEY(model_id_topic_id) REFERENCES topic_t(id) INITIALLY DEFERRED; +CREATE INDEX idx_history_entry_t_model_id_topic_id ON history_entry_t (model_id_topic_id); ALTER TABLE history_entry_t ADD CONSTRAINT fk_history_entry_t_model_id_user_id_user_t_id FOREIGN KEY(model_id_user_id) REFERENCES user_t(id) INITIALLY DEFERRED; CREATE INDEX idx_history_entry_t_model_id_user_id ON history_entry_t (model_id_user_id); ALTER TABLE history_entry_t ADD CONSTRAINT fk_history_entry_t_position_id_history_position_t_id FOREIGN KEY(position_id) REFERENCES history_position_t(id) INITIALLY DEFERRED; @@ -3781,10 +3776,17 @@ CREATE INDEX idx_poll_ballot_user_t_acting_meeting_user_id ON poll_ballot_user_t ALTER TABLE poll_ballot_user_t ADD CONSTRAINT fk_poll_ballot_user_t_represented_meeting_user_id_meetin7f0c82a FOREIGN KEY(represented_meeting_user_id) REFERENCES meeting_user_t(id) INITIALLY DEFERRED; CREATE INDEX idx_poll_ballot_user_t_represented_meeting_user_id ON poll_ballot_user_t (represented_meeting_user_id); +ALTER TABLE poll_entitled_user_t ADD CONSTRAINT fk_poll_entitled_user_t_poll_id_poll_t_id FOREIGN KEY(poll_id) REFERENCES poll_t(id) INITIALLY DEFERRED; +CREATE INDEX idx_poll_entitled_user_t_poll_id ON poll_entitled_user_t (poll_id); +ALTER TABLE poll_entitled_user_t ADD CONSTRAINT fk_poll_entitled_user_t_meeting_user_id_meeting_user_t_id FOREIGN KEY(meeting_user_id) REFERENCES meeting_user_t(id) INITIALLY DEFERRED; +CREATE INDEX idx_poll_entitled_user_t_meeting_user_id ON poll_entitled_user_t (meeting_user_id); + ALTER TABLE poll_option_t ADD CONSTRAINT fk_poll_option_t_poll_id_poll_t_id FOREIGN KEY(poll_id) REFERENCES poll_t(id) INITIALLY DEFERRED; CREATE INDEX idx_poll_option_t_poll_id ON poll_option_t (poll_id); -ALTER TABLE poll_option_t ADD CONSTRAINT fk_poll_option_t_meeting_user_id_meeting_user_t_id FOREIGN KEY(meeting_user_id) REFERENCES meeting_user_t(id) INITIALLY DEFERRED; -CREATE INDEX idx_poll_option_t_meeting_user_id ON poll_option_t (meeting_user_id); +ALTER TABLE poll_option_t ADD CONSTRAINT fk_poll_option_t_content_object_id_meeting_user_id_meeti29ea351 FOREIGN KEY(content_object_id_meeting_user_id) REFERENCES meeting_user_t(id) INITIALLY DEFERRED; +CREATE INDEX idx_poll_option_t_content_object_id_meeting_user_id ON poll_option_t (content_object_id_meeting_user_id); +ALTER TABLE poll_option_t ADD CONSTRAINT fk_poll_option_t_content_object_id_user_id_user_t_id FOREIGN KEY(content_object_id_user_id) REFERENCES user_t(id) INITIALLY DEFERRED; +CREATE INDEX idx_poll_option_t_content_object_id_user_id ON poll_option_t (content_object_id_user_id); ALTER TABLE projection_t ADD CONSTRAINT fk_projection_t_current_projector_id_projector_t_id FOREIGN KEY(current_projector_id) REFERENCES projector_t(id) INITIALLY DEFERRED; CREATE INDEX idx_projection_t_current_projector_id ON projection_t (current_projector_id); @@ -4701,14 +4703,11 @@ DEFERRABLE INITIALLY DEFERRED FOR EACH ROW EXECUTE FUNCTION notify_transaction_e CREATE TRIGGER tr_log_assignment_model_id_assignment_id AFTER INSERT OR UPDATE OF model_id_assignment_id OR DELETE ON history_entry_t FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('assignment','model_id_assignment_id','history_entry_ids'); -CREATE TRIGGER tr_log_meeting_user_model_id_meeting_user_id AFTER INSERT OR UPDATE OF model_id_meeting_user_id OR DELETE ON history_entry_t -FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('meeting_user','model_id_meeting_user_id','history_entry_ids'); - CREATE TRIGGER tr_log_motion_model_id_motion_id AFTER INSERT OR UPDATE OF model_id_motion_id OR DELETE ON history_entry_t FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('motion','model_id_motion_id','history_entry_ids'); -CREATE TRIGGER tr_log_poll_model_id_poll_id AFTER INSERT OR UPDATE OF model_id_poll_id OR DELETE ON history_entry_t -FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('poll','model_id_poll_id','history_entry_ids'); +CREATE TRIGGER tr_log_topic_model_id_topic_id AFTER INSERT OR UPDATE OF model_id_topic_id OR DELETE ON history_entry_t +FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('topic','model_id_topic_id','history_entry_ids'); CREATE TRIGGER tr_log_user_model_id_user_id AFTER INSERT OR UPDATE OF model_id_user_id OR DELETE ON history_entry_t FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('user','model_id_user_id','history_entry_ids'); @@ -4892,11 +4891,6 @@ FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('meeting_user','vote_d CREATE CONSTRAINT TRIGGER notify_transaction_end AFTER INSERT OR UPDATE OR DELETE ON nm_meeting_user_vote_delegated_to_ids_meeting_user_t DEFERRABLE INITIALLY DEFERRED FOR EACH ROW EXECUTE FUNCTION notify_transaction_end(); -CREATE TRIGGER tr_log_nm_meeting_user_entitled_at_poll_ids_poll_t AFTER INSERT OR UPDATE OR DELETE ON nm_meeting_user_entitled_at_poll_ids_poll_t -FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('meeting_user','meeting_user_id','entitled_at_poll_ids','poll','poll_id','entitled_meeting_user_ids'); -CREATE CONSTRAINT TRIGGER notify_transaction_end AFTER INSERT OR UPDATE OR DELETE ON nm_meeting_user_entitled_at_poll_ids_poll_t -DEFERRABLE INITIALLY DEFERRED FOR EACH ROW EXECUTE FUNCTION notify_transaction_end(); - CREATE TRIGGER tr_log_nm_meeting_user_structure_level_ids_structure_level_t AFTER INSERT OR UPDATE OR DELETE ON nm_meeting_user_structure_level_ids_structure_level_t FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('meeting_user','meeting_user_id','structure_level_ids','structure_level','structure_level_id','meeting_user_ids'); CREATE CONSTRAINT TRIGGER notify_transaction_end AFTER INSERT OR UPDATE OR DELETE ON nm_meeting_user_structure_level_ids_structure_level_t @@ -5193,6 +5187,16 @@ FOR EACH ROW EXECUTE FUNCTION log_modified_models('poll_config_stv_scottish'); CREATE CONSTRAINT TRIGGER notify_transaction_end AFTER INSERT OR UPDATE OR DELETE ON poll_config_stv_scottish_t DEFERRABLE INITIALLY DEFERRED FOR EACH ROW EXECUTE FUNCTION notify_transaction_end(); +CREATE TRIGGER tr_log_poll_entitled_user AFTER INSERT OR UPDATE OR DELETE ON poll_entitled_user_t +FOR EACH ROW EXECUTE FUNCTION log_modified_models('poll_entitled_user'); +CREATE CONSTRAINT TRIGGER notify_transaction_end AFTER INSERT OR UPDATE OR DELETE ON poll_entitled_user_t +DEFERRABLE INITIALLY DEFERRED FOR EACH ROW EXECUTE FUNCTION notify_transaction_end(); + +CREATE TRIGGER tr_log_poll_entitled_user_t_poll_id AFTER INSERT OR UPDATE OF poll_id OR DELETE ON poll_entitled_user_t +FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('poll', 'poll_id', 'entitled_user_ids'); +CREATE TRIGGER tr_log_poll_entitled_user_t_meeting_user_id AFTER INSERT OR UPDATE OF meeting_user_id OR DELETE ON poll_entitled_user_t +FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('meeting_user', 'meeting_user_id', 'poll_entitled_user_ids'); + CREATE TRIGGER tr_log_poll_option AFTER INSERT OR UPDATE OR DELETE ON poll_option_t FOR EACH ROW EXECUTE FUNCTION log_modified_models('poll_option'); CREATE CONSTRAINT TRIGGER notify_transaction_end AFTER INSERT OR UPDATE OR DELETE ON poll_option_t @@ -5200,8 +5204,12 @@ DEFERRABLE INITIALLY DEFERRED FOR EACH ROW EXECUTE FUNCTION notify_transaction_e CREATE TRIGGER tr_log_poll_option_t_poll_id AFTER INSERT OR UPDATE OF poll_id OR DELETE ON poll_option_t FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('poll', 'poll_id', 'option_ids'); -CREATE TRIGGER tr_log_poll_option_t_meeting_user_id AFTER INSERT OR UPDATE OF meeting_user_id OR DELETE ON poll_option_t -FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('meeting_user', 'meeting_user_id', 'poll_option_ids'); + +CREATE TRIGGER tr_log_meeting_user_content_object_id_meeting_user_id AFTER INSERT OR UPDATE OF content_object_id_meeting_user_id OR DELETE ON poll_option_t +FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('meeting_user','content_object_id_meeting_user_id','poll_option_ids'); + +CREATE TRIGGER tr_log_user_content_object_id_user_id AFTER INSERT OR UPDATE OF content_object_id_user_id OR DELETE ON poll_option_t +FOR EACH ROW EXECUTE FUNCTION log_modified_related_models('user','content_object_id_user_id','poll_option_ids'); CREATE TRIGGER tr_log_projection AFTER INSERT OR UPDATE OR DELETE ON projection_t FOR EACH ROW EXECUTE FUNCTION log_modified_models('projection'); @@ -5603,14 +5611,6 @@ CREATE CONSTRAINT TRIGGER equal_meeting_id_on_meeting_user_t_vote_delegated_to_i FOR EACH ROW EXECUTE FUNCTION check_equals_intermediate('vote_delegations_from_id', 'meeting_user', 'vote_delegated_to_id', 'meeting_user', 'meeting_id', 'vote_delegated_to_ids'); -CREATE CONSTRAINT TRIGGER equal_meeting_id_on_meeting_user_t_entitled_at_poll_ids AFTER INSERT ON meeting_user_t INITIALLY DEFERRED -FOR EACH ROW EXECUTE FUNCTION check_equals_multi('nm_meeting_user_entitled_at_poll_ids_poll_t', 'meeting_user_id', 'meeting_user', 'poll_id', 'poll', 'meeting_id', 'entitled_at_poll_ids'); -CREATE CONSTRAINT TRIGGER equal_meeting_id_on_poll_t_entitled_meeting_user_ids AFTER INSERT ON poll_t INITIALLY DEFERRED -FOR EACH ROW EXECUTE FUNCTION check_equals_multi('nm_meeting_user_entitled_at_poll_ids_poll_t', 'poll_id', 'poll', 'meeting_user_id', 'meeting_user', 'meeting_id', 'entitled_meeting_user_ids'); -CREATE CONSTRAINT TRIGGER equal_meeting_id_on_meeting_user_t_entitled_at_poll_ids_058a2c8 AFTER INSERT ON nm_meeting_user_entitled_at_poll_ids_poll_t INITIALLY DEFERRED -FOR EACH ROW EXECUTE FUNCTION check_equals_intermediate('meeting_user_id', 'meeting_user', 'poll_id', 'poll', 'meeting_id', 'entitled_at_poll_ids'); - - CREATE CONSTRAINT TRIGGER equal_meeting_id_on_meeting_user_t_structure_level_ids AFTER INSERT ON meeting_user_t INITIALLY DEFERRED FOR EACH ROW EXECUTE FUNCTION check_equals_multi('nm_meeting_user_structure_level_ids_structure_level_t', 'meeting_user_id', 'meeting_user', 'structure_level_id', 'structure_level', 'meeting_id', 'structure_level_ids'); CREATE CONSTRAINT TRIGGER equal_meeting_id_on_structure_level_t_meeting_user_ids AFTER INSERT ON structure_level_t INITIALLY DEFERRED @@ -6059,7 +6059,7 @@ SQL nt:nt => group/poll_ids:-> poll/entitled_group_ids SQL nt:nt => group/used_in_meeting_poll_default_ids:-> meeting_poll_default/group_ids FIELD 1rR:nt => group/meeting_id:-> meeting/group_ids -FIELD 1Gr:nt,nt,nt,nt,nt => history_entry/model_id:-> assignment/history_entry_ids,meeting_user/history_entry_ids,motion/history_entry_ids,poll/history_entry_ids,user/history_entry_ids +FIELD 1Gr:nt,nt,nt,nt => history_entry/model_id:-> assignment/history_entry_ids,motion/history_entry_ids,topic/history_entry_ids,user/history_entry_ids FIELD 1rR:nt => history_entry/position_id:-> history_position/entry_ids FIELD 1r:nt => history_entry/meeting_id:-> meeting/relevant_history_entry_ids @@ -6207,14 +6207,13 @@ SQL nt:1r => meeting_user/motion_submitter_ids:-> motion_submitter/meeting_user_ SQL nt:1r => meeting_user/assignment_candidate_ids:-> assignment_candidate/meeting_user_id SQL nt:nt => meeting_user/vote_delegated_to_ids:-> meeting_user/vote_delegations_from_ids SQL nt:nt => meeting_user/vote_delegations_from_ids:-> meeting_user/vote_delegated_to_ids -SQL nr:1r => meeting_user/poll_option_ids:-> poll_option/meeting_user_id -SQL nt:1rR => meeting_user/acting_ballot_ids:-> poll_ballot_user/acting_meeting_user_id -SQL nt:1rR => meeting_user/represented_ballot_ids:-> poll_ballot_user/represented_meeting_user_id -SQL nt:nt => meeting_user/entitled_at_poll_ids:-> poll/entitled_meeting_user_ids +SQL nt:1Gr => meeting_user/poll_option_ids:-> poll_option/content_object_id +SQL nt:1r => meeting_user/acting_ballot_ids:-> poll_ballot_user/acting_meeting_user_id +SQL nt:1r => meeting_user/represented_ballot_ids:-> poll_ballot_user/represented_meeting_user_id +SQL nt:1r => meeting_user/poll_entitled_user_ids:-> poll_entitled_user/meeting_user_id SQL nt:1r => meeting_user/chat_message_ids:-> chat_message/meeting_user_id SQL ntR:nt => meeting_user/group_ids:-> group/meeting_user_ids SQL nt:nt => meeting_user/structure_level_ids:-> structure_level/meeting_user_ids -SQL nt:1Gr => meeting_user/history_entry_ids:-> history_entry/model_id FIELD 1r:nt => motion/lead_motion_id:-> motion/amendment_ids SQL nt:1r => motion/amendment_ids:-> motion/lead_motion_id @@ -6333,18 +6332,17 @@ FIELD 1GrR:nt,nt,nt => poll/content_object_id:-> motion/poll_ids,assignment/poll SQL nr:1rR => poll/ballot_ids:-> poll_ballot/poll_id SQL nr:1rR => poll/ballot_user_ids:-> poll_ballot_user/poll_id SQL nt:nt => poll/entitled_group_ids:-> group/poll_ids -SQL nt:nt => poll/entitled_meeting_user_ids:-> meeting_user/entitled_at_poll_ids +SQL nt:1rR => poll/entitled_user_ids:-> poll_entitled_user/poll_id SQL nt:1GrR => poll/projection_ids:-> projection/content_object_id FIELD 1rR:nr => poll/meeting_id:-> meeting/poll_ids -SQL nt:1Gr => poll/history_entry_ids:-> history_entry/model_id FIELD 1rR:nr => poll_ballot/poll_id:-> poll/ballot_ids FIELD 1r:1t => poll_ballot/poll_ballot_user_id:-> poll_ballot_user/poll_ballot_id FIELD 1rR:nr => poll_ballot_user/poll_id:-> poll/ballot_user_ids SQL 1t:1r => poll_ballot_user/poll_ballot_id:-> poll_ballot/poll_ballot_user_id -FIELD 1rR:nt => poll_ballot_user/acting_meeting_user_id:-> meeting_user/acting_ballot_ids -FIELD 1rR:nt => poll_ballot_user/represented_meeting_user_id:-> meeting_user/represented_ballot_ids +FIELD 1r:nt => poll_ballot_user/acting_meeting_user_id:-> meeting_user/acting_ballot_ids +FIELD 1r:nt => poll_ballot_user/represented_meeting_user_id:-> meeting_user/represented_ballot_ids SQL 1tR:1GrR => poll_config_approval/poll_id:-> poll/config_id @@ -6356,8 +6354,11 @@ SQL 1tR:1GrR => poll_config_selection/poll_id:-> poll/config_id SQL 1tR:1GrR => poll_config_stv_scottish/poll_id:-> poll/config_id +FIELD 1rR:nt => poll_entitled_user/poll_id:-> poll/entitled_user_ids +FIELD 1r:nt => poll_entitled_user/meeting_user_id:-> meeting_user/poll_entitled_user_ids + FIELD 1rR:nt => poll_option/poll_id:-> poll/option_ids -FIELD 1r:nr => poll_option/meeting_user_id:-> meeting_user/poll_option_ids +FIELD 1Gr:nt,nt => poll_option/content_object_id:-> meeting_user/poll_option_ids,user/poll_option_ids FIELD 1r:nt => projection/current_projector_id:-> projector/current_projection_ids FIELD 1r:nt => projection/preview_projector_id:-> projector/preview_projection_ids @@ -6420,6 +6421,7 @@ SQL 1tR:1GrR => topic/list_of_speakers_id:-> list_of_speakers/content_object_id SQL nt:1GrR => topic/poll_ids:-> poll/content_object_id SQL nt:1GrR => topic/projection_ids:-> projection/content_object_id FIELD 1rR:nt => topic/meeting_id:-> meeting/topic_ids +SQL nt:1Gr => topic/history_entry_ids:-> history_entry/model_id FIELD 1r:nr => user/gender_id:-> gender/user_ids SQL nt:nt => user/is_present_in_meeting_ids:-> meeting/present_user_ids @@ -6427,6 +6429,7 @@ SQL nts:nts => user/committee_ids:-> committee/user_ids SQL nt:nt => user/committee_management_ids:-> committee/manager_ids SQL nt:1rR => user/meeting_user_ids:-> meeting_user/user_id FIELD 1r:nt => user/home_committee_id:-> committee/native_user_ids +SQL nt:1Gr => user/poll_option_ids:-> poll_option/content_object_id SQL nt:1r => user/history_position_ids:-> history_position/user_id SQL nt:1Gr => user/history_entry_ids:-> history_entry/model_id SQL nts:nts => user/meeting_ids:-> meeting/user_ids diff --git a/meta b/meta index 3851ce674..013dab465 160000 --- a/meta +++ b/meta @@ -1 +1 @@ -Subproject commit 3851ce6743a997ef65cc1ac65f2168190e2223ed +Subproject commit 013dab465921c21109a2fe57e192fbbd370b30ff diff --git a/metagen/field_def.go b/metagen/field_def.go index 72ed70426..8ad49e64b 100644 --- a/metagen/field_def.go +++ b/metagen/field_def.go @@ -146,7 +146,8 @@ var RelationFields = map[string]string{ "poll_config_rating_score/poll_id": "poll/config_id", "poll_config_selection/poll_id": "poll/config_id", "poll_config_stv_scottish/poll_id": "poll/config_id", - "poll_option/meeting_user_id": "meeting_user/poll_option_ids", + "poll_entitled_user/meeting_user_id": "meeting_user/poll_entitled_user_ids", + "poll_entitled_user/poll_id": "poll/entitled_user_ids", "poll_option/poll_id": "poll/option_ids", "projection/current_projector_id": "projector/current_projection_ids", "projection/history_projector_id": "projector/history_projection_ids", @@ -295,15 +296,14 @@ var RelationListFields = map[string]string{ "meeting_user/acting_ballot_ids": "poll_ballot_user/acting_meeting_user_id", "meeting_user/assignment_candidate_ids": "assignment_candidate/meeting_user_id", "meeting_user/chat_message_ids": "chat_message/meeting_user_id", - "meeting_user/entitled_at_poll_ids": "poll/entitled_meeting_user_ids", "meeting_user/group_ids": "group/meeting_user_ids", - "meeting_user/history_entry_ids": "history_entry/model_id", "meeting_user/motion_editor_ids": "motion_editor/meeting_user_id", "meeting_user/motion_submitter_ids": "motion_submitter/meeting_user_id", "meeting_user/motion_supporter_ids": "motion_supporter/meeting_user_id", "meeting_user/motion_working_group_speaker_ids": "motion_working_group_speaker/meeting_user_id", "meeting_user/personal_note_ids": "personal_note/meeting_user_id", - "meeting_user/poll_option_ids": "poll_option/meeting_user_id", + "meeting_user/poll_entitled_user_ids": "poll_entitled_user/meeting_user_id", + "meeting_user/poll_option_ids": "poll_option/content_object_id", "meeting_user/represented_ballot_ids": "poll_ballot_user/represented_meeting_user_id", "meeting_user/speaker_ids": "speaker/meeting_user_id", "meeting_user/structure_level_ids": "structure_level/meeting_user_ids", @@ -356,8 +356,7 @@ var RelationListFields = map[string]string{ "poll/ballot_ids": "poll_ballot/poll_id", "poll/ballot_user_ids": "poll_ballot_user/poll_id", "poll/entitled_group_ids": "group/poll_ids", - "poll/entitled_meeting_user_ids": "meeting_user/entitled_at_poll_ids", - "poll/history_entry_ids": "history_entry/model_id", + "poll/entitled_user_ids": "poll_entitled_user/poll_id", "poll/option_ids": "poll_option/poll_id", "poll/projection_ids": "projection/content_object_id", "projector/current_projection_ids": "projection/current_projector_id", @@ -369,6 +368,7 @@ var RelationListFields = map[string]string{ "structure_level/structure_level_list_of_speakers_ids": "structure_level_list_of_speakers/structure_level_id", "structure_level_list_of_speakers/speaker_ids": "speaker/structure_level_list_of_speakers_id", "topic/attachment_meeting_mediafile_ids": "meeting_mediafile/attachment_ids", + "topic/history_entry_ids": "history_entry/model_id", "topic/poll_ids": "poll/content_object_id", "topic/projection_ids": "projection/content_object_id", "user/committee_ids": "committee/user_ids", @@ -378,18 +378,20 @@ var RelationListFields = map[string]string{ "user/is_present_in_meeting_ids": "meeting/present_user_ids", "user/meeting_ids": "meeting/user_ids", "user/meeting_user_ids": "meeting_user/user_id", + "user/poll_option_ids": "poll_option/content_object_id", } // GenericRelationFields is a map from are all (single) generic relation fields // to the fields, there relate to. var GenericRelationFields = map[string]map[string]string{ "agenda_item/content_object_id": {"assignment": "agenda_item_id", "motion": "agenda_item_id", "motion_block": "agenda_item_id", "topic": "agenda_item_id"}, - "history_entry/model_id": {"assignment": "history_entry_ids", "meeting_user": "history_entry_ids", "motion": "history_entry_ids", "poll": "history_entry_ids", "user": "history_entry_ids"}, + "history_entry/model_id": {"assignment": "history_entry_ids", "motion": "history_entry_ids", "topic": "history_entry_ids", "user": "history_entry_ids"}, "list_of_speakers/content_object_id": {"assignment": "list_of_speakers_id", "meeting_mediafile": "list_of_speakers_id", "motion": "list_of_speakers_id", "motion_block": "list_of_speakers_id", "topic": "list_of_speakers_id"}, "mediafile/owner_id": {"meeting": "mediafile_ids", "organization": "mediafile_ids"}, "personal_note/content_object_id": {"motion": "personal_note_ids"}, "poll/config_id": {"poll_config_approval": "poll_id", "poll_config_rating_approval": "poll_id", "poll_config_rating_score": "poll_id", "poll_config_selection": "poll_id", "poll_config_stv_scottish": "poll_id"}, "poll/content_object_id": {"assignment": "poll_ids", "motion": "poll_ids", "topic": "poll_ids"}, + "poll_option/content_object_id": {"meeting_user": "poll_option_ids", "user": "poll_option_ids"}, "projection/content_object_id": {"agenda_item": "projection_ids", "assignment": "projection_ids", "list_of_speakers": "projection_ids", "meeting": "projection_ids", "meeting_mediafile": "projection_ids", "motion": "projection_ids", "motion_block": "projection_ids", "poll": "projection_ids", "projector_countdown": "projection_ids", "projector_message": "projection_ids", "topic": "projection_ids"}, } @@ -521,13 +523,12 @@ var RestrictionModes = map[string]string{ "group/write_comment_section_ids": "A", // history_entry - "history_entry/entries": "A", - "history_entry/id": "A", - "history_entry/meeting_id": "A", - "history_entry/model_id": "A", - "history_entry/original_model_id": "A", - "history_entry/position_id": "A", - "history_entry/structured_information": "A", + "history_entry/entries": "A", + "history_entry/id": "A", + "history_entry/meeting_id": "A", + "history_entry/model_id": "A", + "history_entry/original_model_id": "A", + "history_entry/position_id": "A", // history_position "history_position/entry_ids": "A", @@ -847,15 +848,14 @@ var RestrictionModes = map[string]string{ "meeting_user/acting_ballot_ids": "A", "meeting_user/assignment_candidate_ids": "A", "meeting_user/chat_message_ids": "A", - "meeting_user/entitled_at_poll_ids": "A", "meeting_user/group_ids": "A", - "meeting_user/history_entry_ids": "A", "meeting_user/id": "A", "meeting_user/motion_editor_ids": "A", "meeting_user/motion_submitter_ids": "A", "meeting_user/motion_supporter_ids": "A", "meeting_user/motion_working_group_speaker_ids": "A", "meeting_user/number": "A", + "meeting_user/poll_entitled_user_ids": "A", "meeting_user/poll_option_ids": "A", "meeting_user/represented_ballot_ids": "A", "meeting_user/speaker_ids": "A", @@ -1111,27 +1111,26 @@ var RestrictionModes = map[string]string{ "point_of_order_category/text": "A", // poll - "poll/allow_invalid": "A", - "poll/allow_vote_split": "A", - "poll/anonymized": "A", - "poll/ballot_ids": "A", - "poll/ballot_user_ids": "A", - "poll/config_id": "A", - "poll/content_object_id": "A", - "poll/entitled_group_ids": "A", - "poll/entitled_meeting_user_ids": "A", - "poll/history_entry_ids": "A", - "poll/id": "A", - "poll/live_voting_enabled": "A", - "poll/meeting_id": "A", - "poll/option_ids": "A", - "poll/projection_ids": "A", - "poll/published": "A", - "poll/sequential_number": "A", - "poll/state": "A", - "poll/title": "A", - "poll/visibility": "A", - "poll/result": "B", + "poll/allow_invalid": "A", + "poll/allow_vote_split": "A", + "poll/anonymized": "A", + "poll/ballot_ids": "A", + "poll/ballot_user_ids": "A", + "poll/config_id": "A", + "poll/content_object_id": "A", + "poll/entitled_group_ids": "A", + "poll/entitled_user_ids": "A", + "poll/id": "A", + "poll/live_voting_enabled": "A", + "poll/meeting_id": "A", + "poll/option_ids": "A", + "poll/projection_ids": "A", + "poll/published": "A", + "poll/sequential_number": "A", + "poll/state": "A", + "poll/title": "A", + "poll/visibility": "A", + "poll/result": "B", // poll_ballot "poll_ballot/id": "A", @@ -1192,12 +1191,17 @@ var RestrictionModes = map[string]string{ "poll_config_stv_scottish/poll_id": "A", "poll_config_stv_scottish/posts": "A", + // poll_entitled_user + "poll_entitled_user/id": "A", + "poll_entitled_user/meeting_user_id": "A", + "poll_entitled_user/poll_id": "A", + // poll_option - "poll_option/id": "A", - "poll_option/meeting_user_id": "A", - "poll_option/poll_id": "A", - "poll_option/text": "A", - "poll_option/weight": "A", + "poll_option/content_object_id": "A", + "poll_option/id": "A", + "poll_option/poll_id": "A", + "poll_option/text": "A", + "poll_option/weight": "A", // projection "projection/content_object_id": "A", @@ -1371,6 +1375,7 @@ var RestrictionModes = map[string]string{ // topic "topic/agenda_item_id": "A", "topic/attachment_meeting_mediafile_ids": "A", + "topic/history_entry_ids": "A", "topic/id": "A", "topic/list_of_speakers_id": "A", "topic/meeting_id": "A", @@ -1393,6 +1398,7 @@ var RestrictionModes = map[string]string{ "user/last_login": "A", "user/last_name": "A", "user/meeting_user_ids": "A", + "user/poll_option_ids": "A", "user/pronoun": "A", "user/title": "A", "user/email": "B",