Added required flag and other properties to some models.
This commit is contained in:
parent
a1925e87f3
commit
e80f7eb5e4
368
docs/models.yml
368
docs/models.yml
@ -2,11 +2,15 @@
|
|||||||
# Types:
|
# Types:
|
||||||
# - Nativ datatypes: string, number, boolean, JSON
|
# - Nativ datatypes: string, number, boolean, JSON
|
||||||
# - HTML: A string with HTML content.
|
# - HTML: A string with HTML content.
|
||||||
|
# - HTMLVideo: A string with HTML content (with video tags).
|
||||||
# - float: Numbers that are expected to be non-integer. Formatted as in rfc7159.
|
# - float: Numbers that are expected to be non-integer. Formatted as in rfc7159.
|
||||||
# - decimal(X): Decimal values represented as a string with X decimal places.
|
# - decimal(X): Decimal values represented as a string with X decimal places.
|
||||||
|
# At the moment we support only X == 6.
|
||||||
# - datetime: Datetime as a unix timestamp. Why a number? This enables queries
|
# - datetime: Datetime as a unix timestamp. Why a number? This enables queries
|
||||||
# in the DB. And we do not need more precision than 1 second.
|
# in the DB. And we do not need more precision than 1 second.
|
||||||
# - <T>[]: This indicates and arbitrary array of the given type.
|
# - <T>[]: This indicates and arbitrary array of the given type. At the moment
|
||||||
|
# we support only some types. You can add JSON Schema properties for items
|
||||||
|
# using the extra property `items`
|
||||||
# Relations:
|
# Relations:
|
||||||
# - We have the following types: `relation`, `relation-list`, `generic-relation`
|
# - We have the following types: `relation`, `relation-list`, `generic-relation`
|
||||||
# and `generic-relation-list`.
|
# and `generic-relation-list`.
|
||||||
@ -34,6 +38,8 @@
|
|||||||
# - The type `structured-tag` describes the content of a related field as a
|
# - The type `structured-tag` describes the content of a related field as a
|
||||||
# structured field where the template is filled with arbitrary strings instead of
|
# structured field where the template is filled with arbitrary strings instead of
|
||||||
# instance ids.
|
# instance ids.
|
||||||
|
# JSON Schema Properties:
|
||||||
|
# - You can add JSON Schema properties like `enum` and `description` to the fields.
|
||||||
|
|
||||||
organisation:
|
organisation:
|
||||||
id: number
|
id: number
|
||||||
@ -218,7 +224,9 @@ resource:
|
|||||||
|
|
||||||
committee:
|
committee:
|
||||||
id: number
|
id: number
|
||||||
name: string
|
name:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
description: HTML
|
description: HTML
|
||||||
|
|
||||||
meeting_ids:
|
meeting_ids:
|
||||||
@ -245,15 +253,20 @@ committee:
|
|||||||
organisation_id:
|
organisation_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: organisation/committee_ids
|
to: organisation/committee_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
meeting:
|
meeting:
|
||||||
id: number
|
id: number
|
||||||
welcome_title: string
|
welcome_title: string
|
||||||
welcome_text: HTML
|
welcome_text: HTMLVideo
|
||||||
|
|
||||||
# General
|
# General
|
||||||
name: string
|
name:
|
||||||
description: string
|
type: string
|
||||||
|
maxLength: 100
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
|
maxLength: 100
|
||||||
location: string
|
location: string
|
||||||
start_time: datetime
|
start_time: datetime
|
||||||
end_time: datetime
|
end_time: datetime
|
||||||
@ -276,26 +289,65 @@ meeting:
|
|||||||
|
|
||||||
# Projector
|
# Projector
|
||||||
projector_default_countdown_time: number
|
projector_default_countdown_time: number
|
||||||
projector_countdown_warning_time: number
|
projector_countdown_warning_time:
|
||||||
|
type: number
|
||||||
|
minimum: 0
|
||||||
|
|
||||||
# Exports
|
# Exports
|
||||||
export_csv_encoding: string
|
export_csv_encoding:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- utf-8
|
||||||
|
- iso-8859-15
|
||||||
export_csv_separator: string
|
export_csv_separator: string
|
||||||
export_pdf_pagenumber_alignment: string
|
export_pdf_pagenumber_alignment:
|
||||||
export_pdf_fontsize: number
|
type: string
|
||||||
export_pdf_pagesize: string
|
enum:
|
||||||
|
- left
|
||||||
|
- right
|
||||||
|
- center
|
||||||
|
export_pdf_fontsize:
|
||||||
|
type: number
|
||||||
|
enum:
|
||||||
|
- 10
|
||||||
|
- 11
|
||||||
|
- 12
|
||||||
|
export_pdf_pagesize:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- A4
|
||||||
|
- A5
|
||||||
|
|
||||||
# Agenda
|
# Agenda
|
||||||
agenda_show_subtitles: boolean
|
agenda_show_subtitles: boolean
|
||||||
agenda_enable_numbering: boolean
|
agenda_enable_numbering: boolean
|
||||||
agenda_number_prefix: string
|
agenda_number_prefix:
|
||||||
agenda_numeral_system: string
|
type: string
|
||||||
agenda_item_creation: string
|
maxLength: 20
|
||||||
agenda_new_items_default_visibility: number
|
agenda_numeral_system:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- arabic
|
||||||
|
- roman
|
||||||
|
agenda_item_creation:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- always
|
||||||
|
- never
|
||||||
|
- default_yes
|
||||||
|
- default_no
|
||||||
|
agenda_new_items_default_visibility:
|
||||||
|
type: number
|
||||||
|
enum:
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
- 3
|
||||||
agenda_show_internal_items_on_projector: boolean
|
agenda_show_internal_items_on_projector: boolean
|
||||||
|
|
||||||
# List of speakers
|
# List of speakers
|
||||||
list_of_speakers_amount_last_on_projector: number
|
list_of_speakers_amount_last_on_projector:
|
||||||
|
type: number
|
||||||
|
minimum: 0
|
||||||
list_of_speakers_amount_next_on_projector: boolean
|
list_of_speakers_amount_next_on_projector: boolean
|
||||||
list_of_speakers_couple_countdown: boolean
|
list_of_speakers_couple_countdown: boolean
|
||||||
list_of_speakers_show_amount_of_speakers_on_slide: boolean
|
list_of_speakers_show_amount_of_speakers_on_slide: boolean
|
||||||
@ -306,15 +358,25 @@ meeting:
|
|||||||
motions_default_workflow_id:
|
motions_default_workflow_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: motion_workflow/default_workflow_meeting_id
|
to: motion_workflow/default_workflow_meeting_id
|
||||||
|
required: true
|
||||||
motions_default_amendment_workflow_id:
|
motions_default_amendment_workflow_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: motion_workflow/default_amendment_workflow_meeting_id
|
to: motion_workflow/default_amendment_workflow_meeting_id
|
||||||
|
required: true
|
||||||
motions_default_statute_amendment_workflow_id:
|
motions_default_statute_amendment_workflow_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: motion_workflow/default_statute_amendment_workflow_meeting_id
|
to: motion_workflow/default_statute_amendment_workflow_meeting_id
|
||||||
|
required: true
|
||||||
motions_preamble: string
|
motions_preamble: string
|
||||||
motions_default_line_numbering: string
|
motions_default_line_numbering:
|
||||||
motions_line_length: number
|
type: string
|
||||||
|
enum:
|
||||||
|
- outside
|
||||||
|
- inline
|
||||||
|
- none
|
||||||
|
motions_line_length:
|
||||||
|
type: number
|
||||||
|
minimium: 40
|
||||||
motions_reason_required: boolean
|
motions_reason_required: boolean
|
||||||
motions_enable_text_on_projector: boolean
|
motions_enable_text_on_projector: boolean
|
||||||
motions_enable_reason_on_projector: boolean
|
motions_enable_reason_on_projector: boolean
|
||||||
@ -324,9 +386,20 @@ meeting:
|
|||||||
motions_show_sequential_number: boolean
|
motions_show_sequential_number: boolean
|
||||||
motions_recommendations_by: string
|
motions_recommendations_by: string
|
||||||
motions_statute_recommendations_by: string
|
motions_statute_recommendations_by: string
|
||||||
motions_recommendation_text_mode: string
|
motions_recommendation_text_mode:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- original
|
||||||
|
- changed
|
||||||
|
- diff
|
||||||
|
- agreed
|
||||||
motions_default_sorting: string
|
motions_default_sorting: string
|
||||||
motions_identifier_type: string
|
motions_identifier_type:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- per_category
|
||||||
|
- serially_numbered
|
||||||
|
- manually
|
||||||
motions_identifier_min_digits: number
|
motions_identifier_min_digits: number
|
||||||
motions_identifier_with_blank: boolean
|
motions_identifier_with_blank: boolean
|
||||||
motions_statutes_enabled: boolean
|
motions_statutes_enabled: boolean
|
||||||
@ -334,16 +407,28 @@ meeting:
|
|||||||
motions_amendments_in_main_list: boolean
|
motions_amendments_in_main_list: boolean
|
||||||
motions_amendments_of_amendments: boolean
|
motions_amendments_of_amendments: boolean
|
||||||
motions_amendments_prefix: string
|
motions_amendments_prefix: string
|
||||||
motions_amendments_text_mode: string
|
motions_amendments_text_mode:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- freestyle
|
||||||
|
- fulltext
|
||||||
|
- paragraph
|
||||||
motions_amendments_multiple_paragraphs: boolean
|
motions_amendments_multiple_paragraphs: boolean
|
||||||
motions_supporters_min_amount: number
|
motions_supporters_min_amount:
|
||||||
|
type: number
|
||||||
|
minimum: 0
|
||||||
motions_supporters_enable_autoremove: boolean
|
motions_supporters_enable_autoremove: boolean
|
||||||
motions_export_title: string
|
motions_export_title: string
|
||||||
motions_export_preamble: string
|
motions_export_preamble: string
|
||||||
motions_export_submitter_recommendation: boolean
|
motions_export_submitter_recommendation: boolean
|
||||||
motions_export_follow_recommendation: boolean
|
motions_export_follow_recommendation: boolean
|
||||||
|
|
||||||
motion_poll_ballot_paper_selection: string
|
motion_poll_ballot_paper_selection:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- NUMBER_OF_DELEGATES
|
||||||
|
- NUMBER_OF_ALL_PARTICIPANTS
|
||||||
|
- CUSTOM_NUMBER
|
||||||
motion_poll_ballot_paper_number: number
|
motion_poll_ballot_paper_number: number
|
||||||
motion_poll_default_type: string
|
motion_poll_default_type: string
|
||||||
motion_poll_default_100_percent_base: string
|
motion_poll_default_100_percent_base: string
|
||||||
@ -353,7 +438,12 @@ meeting:
|
|||||||
to: group/used_as_motion_poll_default_id
|
to: group/used_as_motion_poll_default_id
|
||||||
|
|
||||||
# Users
|
# Users
|
||||||
users_sort_by: string
|
users_sort_by:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- first_name
|
||||||
|
- last_name
|
||||||
|
- number
|
||||||
users_enable_presence_view: boolean
|
users_enable_presence_view: boolean
|
||||||
users_enable_vote_weight: boolean
|
users_enable_vote_weight: boolean
|
||||||
users_allow_self_set_present: boolean
|
users_allow_self_set_present: boolean
|
||||||
@ -362,7 +452,13 @@ meeting:
|
|||||||
users_pdf_url: string
|
users_pdf_url: string
|
||||||
users_pdf_wlan_ssid: string
|
users_pdf_wlan_ssid: string
|
||||||
users_pdf_wlan_password: string
|
users_pdf_wlan_password: string
|
||||||
users_pdf_wlan_encryption: string
|
users_pdf_wlan_encryption:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- ""
|
||||||
|
- WEP
|
||||||
|
- WPA
|
||||||
|
- nopass
|
||||||
users_email_sender: string
|
users_email_sender: string
|
||||||
users_email_replyto: string
|
users_email_replyto: string
|
||||||
users_email_subject: string
|
users_email_subject: string
|
||||||
@ -372,7 +468,12 @@ meeting:
|
|||||||
assignemnts_export_title: string
|
assignemnts_export_title: string
|
||||||
assignments_export_preamble: string
|
assignments_export_preamble: string
|
||||||
|
|
||||||
assignment_poll_ballot_paper_selection: string
|
assignment_poll_ballot_paper_selection:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- NUMBER_OF_DELEGATES
|
||||||
|
- NUMBER_OF_ALL_PARTICIPANTS
|
||||||
|
- CUSTOM_NUMBER
|
||||||
assignment_poll_ballot_paper_number: number
|
assignment_poll_ballot_paper_number: number
|
||||||
assignment_poll_add_candidates_to_list_of_speakers: boolean
|
assignment_poll_add_candidates_to_list_of_speakers: boolean
|
||||||
assignment_poll_sort_poll_result_by_votes: boolean
|
assignment_poll_sort_poll_result_by_votes: boolean
|
||||||
@ -492,6 +593,7 @@ meeting:
|
|||||||
committee_id:
|
committee_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: committee/meeting_ids
|
to: committee/meeting_ids
|
||||||
|
required: true
|
||||||
default_meeting_for_committee_id:
|
default_meeting_for_committee_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: committee/default_meeting_id
|
to: committee/default_meeting_id
|
||||||
@ -504,7 +606,10 @@ meeting:
|
|||||||
guest_ids:
|
guest_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
to: user/guest_meeting_ids
|
to: user/guest_meeting_ids
|
||||||
user_ids: number[] # Calculated: All ids from temporary_user_ids, guest_ids and all users assigned to groups.
|
user_ids:
|
||||||
|
type: number[]
|
||||||
|
decription: Calculated. All ids from temporary_user_ids, guest_ids and all users assigned to groups.
|
||||||
|
read_only: true
|
||||||
reference_projector_id:
|
reference_projector_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: projector/used_as_reference_projector_meeting_id
|
to: projector/used_as_reference_projector_meeting_id
|
||||||
@ -512,13 +617,16 @@ meeting:
|
|||||||
default_group_id:
|
default_group_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: group/default_group_for_meeting_id
|
to: group/default_group_for_meeting_id
|
||||||
|
required: true
|
||||||
superadmin_group_id:
|
superadmin_group_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: group/superadmin_group_for_meeting_id
|
to: group/superadmin_group_for_meeting_id
|
||||||
|
|
||||||
group:
|
group:
|
||||||
id: number
|
id: number
|
||||||
name: string
|
name:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
permissions: string[]
|
permissions: string[]
|
||||||
|
|
||||||
user_ids:
|
user_ids:
|
||||||
@ -541,6 +649,8 @@ group:
|
|||||||
mediafile_inherited_access_group_ids:
|
mediafile_inherited_access_group_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
to: mediafile/inherited_access_group_ids
|
to: mediafile/inherited_access_group_ids
|
||||||
|
description: Calculated field.
|
||||||
|
read_only: true
|
||||||
read_comment_section_ids:
|
read_comment_section_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
to: motion_comment_section/read_group_ids
|
to: motion_comment_section/read_group_ids
|
||||||
@ -562,6 +672,7 @@ group:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/group_ids
|
to: meeting/group_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
personal_note:
|
personal_note:
|
||||||
id: number
|
id: number
|
||||||
@ -585,7 +696,9 @@ personal_note:
|
|||||||
|
|
||||||
tag:
|
tag:
|
||||||
id: number
|
id: number
|
||||||
name: string
|
name:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
|
||||||
tagged_ids:
|
tagged_ids:
|
||||||
type: generic-relation-list
|
type: generic-relation-list
|
||||||
@ -599,20 +712,38 @@ tag:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/tag_ids
|
to: meeting/tag_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
agenda_item:
|
agenda_item:
|
||||||
id: number
|
id: number
|
||||||
item_number: string
|
item_number: string
|
||||||
comment: string
|
comment: string
|
||||||
closed: boolean
|
closed: boolean
|
||||||
|
type:
|
||||||
type: number
|
type: number
|
||||||
is_internal: boolean
|
enum:
|
||||||
is_hidden: boolean
|
- 1
|
||||||
duration: number # in seconds
|
- 2
|
||||||
|
- 3
|
||||||
|
duration:
|
||||||
|
type: number
|
||||||
|
description: Given in seconds
|
||||||
|
minimum: 0
|
||||||
|
is_internal:
|
||||||
|
type: boolean
|
||||||
|
description: Calculated by the server
|
||||||
|
read_only: true
|
||||||
|
is_hidden:
|
||||||
|
type: boolean
|
||||||
|
description: Calculated by the server
|
||||||
|
read_only: true
|
||||||
|
level:
|
||||||
|
type: number
|
||||||
|
description: Calculated by the server
|
||||||
|
read_only: true
|
||||||
weight:
|
weight:
|
||||||
type: number
|
type: number
|
||||||
default: 0
|
default: 0
|
||||||
level: number # calculated.
|
|
||||||
|
|
||||||
content_object_id:
|
content_object_id:
|
||||||
type: generic-relation
|
type: generic-relation
|
||||||
@ -623,6 +754,7 @@ agenda_item:
|
|||||||
- assignment
|
- assignment
|
||||||
- topic
|
- topic
|
||||||
field: agenda_item_id
|
field: agenda_item_id
|
||||||
|
required: true
|
||||||
parent_id:
|
parent_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: agenda_item/child_ids
|
to: agenda_item/child_ids
|
||||||
@ -641,6 +773,7 @@ agenda_item:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/agenda_item_ids
|
to: meeting/agenda_item_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
list_of_speakers:
|
list_of_speakers:
|
||||||
id: number
|
id: number
|
||||||
@ -656,6 +789,7 @@ list_of_speakers:
|
|||||||
- topic
|
- topic
|
||||||
- mediafile
|
- mediafile
|
||||||
field: list_of_speakers_id
|
field: list_of_speakers_id
|
||||||
|
required: true
|
||||||
speaker_ids:
|
speaker_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
to: speaker/list_of_speakers_id
|
to: speaker/list_of_speakers_id
|
||||||
@ -668,11 +802,16 @@ list_of_speakers:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/list_of_speakers_ids
|
to: meeting/list_of_speakers_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
speaker:
|
speaker:
|
||||||
id: number
|
id: number
|
||||||
begin_time: datetime
|
begin_time:
|
||||||
end_time: datetime
|
type: datetime
|
||||||
|
read_only: true
|
||||||
|
end_time:
|
||||||
|
type: datetime
|
||||||
|
read_only: true
|
||||||
weight:
|
weight:
|
||||||
type: number
|
type: number
|
||||||
default: 0
|
default: 0
|
||||||
@ -681,6 +820,7 @@ speaker:
|
|||||||
list_of_speakers_id:
|
list_of_speakers_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: list_of_speakers/speaker_ids
|
to: list_of_speakers/speaker_ids
|
||||||
|
required: true
|
||||||
user_id:
|
user_id:
|
||||||
type: relation
|
type: relation
|
||||||
to:
|
to:
|
||||||
@ -689,11 +829,14 @@ speaker:
|
|||||||
name: speaker_$_ids
|
name: speaker_$_ids
|
||||||
type: structured-relation
|
type: structured-relation
|
||||||
replacement: meeting_id
|
replacement: meeting_id
|
||||||
|
required: true
|
||||||
|
|
||||||
topic:
|
topic:
|
||||||
id: number
|
id: number
|
||||||
title: string
|
title:
|
||||||
text: HTML
|
type: string
|
||||||
|
required: true
|
||||||
|
text: HTMLVideo
|
||||||
|
|
||||||
attachment_ids:
|
attachment_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
@ -701,21 +844,29 @@ topic:
|
|||||||
agenda_item_id:
|
agenda_item_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: agenda_item/content_object_id
|
to: agenda_item/content_object_id
|
||||||
|
required: true
|
||||||
list_of_speakers_id:
|
list_of_speakers_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: list_of_speakers/content_object_id
|
to: list_of_speakers/content_object_id
|
||||||
|
required: true
|
||||||
tag_ids:
|
tag_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
to: tag/tagged_ids
|
to: tag/tagged_ids
|
||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/topic_ids
|
to: meeting/topic_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
motion:
|
motion:
|
||||||
id: number
|
id: number
|
||||||
number: string
|
number: string
|
||||||
sequential_number: number # Calculated
|
sequential_number:
|
||||||
title: string
|
type: number
|
||||||
|
description: The (positive) serial number of this motion. This number is auto-generated and read-only.
|
||||||
|
read_only: true
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
text: HTML
|
text: HTML
|
||||||
amendment_paragraph_$:
|
amendment_paragraph_$:
|
||||||
type: template
|
type: template
|
||||||
@ -731,8 +882,12 @@ motion:
|
|||||||
sort_weight:
|
sort_weight:
|
||||||
type: number
|
type: number
|
||||||
default: 0
|
default: 0
|
||||||
created: datetime
|
created:
|
||||||
last_modified: datetime
|
type: datetime
|
||||||
|
read_only: true
|
||||||
|
last_modified:
|
||||||
|
type: datetime
|
||||||
|
read_only: true
|
||||||
|
|
||||||
lead_motion_id:
|
lead_motion_id:
|
||||||
type: relation
|
type: relation
|
||||||
@ -756,6 +911,7 @@ motion:
|
|||||||
state_id:
|
state_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: motion_state/motion_ids
|
to: motion_state/motion_ids
|
||||||
|
required: true
|
||||||
recommendation_id:
|
recommendation_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: motion_state/motion_recommendation_ids
|
to: motion_state/motion_recommendation_ids
|
||||||
@ -803,6 +959,7 @@ motion:
|
|||||||
list_of_speakers_id:
|
list_of_speakers_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: list_of_speakers/content_object_id
|
to: list_of_speakers/content_object_id
|
||||||
|
required: true
|
||||||
tag_ids:
|
tag_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
to: tag/tagged_ids
|
to: tag/tagged_ids
|
||||||
@ -821,6 +978,7 @@ motion:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/motion_ids
|
to: meeting/motion_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
motion_submitter:
|
motion_submitter:
|
||||||
id: number
|
id: number
|
||||||
@ -847,13 +1005,17 @@ motion_comment:
|
|||||||
motion_id:
|
motion_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: motion/comment_ids
|
to: motion/comment_ids
|
||||||
|
required: true
|
||||||
section_id:
|
section_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: motion_comment_section/comment_ids
|
to: motion_comment_section/comment_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
motion_comment_section:
|
motion_comment_section:
|
||||||
id: number
|
id: number
|
||||||
name: string
|
name:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
weight:
|
weight:
|
||||||
type: number
|
type: number
|
||||||
default: 0
|
default: 0
|
||||||
@ -870,15 +1032,23 @@ motion_comment_section:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/motion_comment_section_ids
|
to: meeting/motion_comment_section_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
motion_category:
|
motion_category:
|
||||||
id: number
|
id: number
|
||||||
name: string
|
name:
|
||||||
prefix: string
|
type: string
|
||||||
|
required: true
|
||||||
|
prefix:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
weight:
|
weight:
|
||||||
type: number
|
type: number
|
||||||
default: 0
|
default: 0
|
||||||
level: number
|
level:
|
||||||
|
type: number
|
||||||
|
description: Calculated field.
|
||||||
|
read_only: true
|
||||||
|
|
||||||
parent_id:
|
parent_id:
|
||||||
type: relation
|
type: relation
|
||||||
@ -892,10 +1062,13 @@ motion_category:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/motion_category_ids
|
to: meeting/motion_category_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
motion_block:
|
motion_block:
|
||||||
id: number
|
id: number
|
||||||
title: string
|
title:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
internal: boolean
|
internal: boolean
|
||||||
|
|
||||||
motion_ids:
|
motion_ids:
|
||||||
@ -907,6 +1080,7 @@ motion_block:
|
|||||||
list_of_speakers_id:
|
list_of_speakers_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: list_of_speakers/content_object_id
|
to: list_of_speakers/content_object_id
|
||||||
|
required: true
|
||||||
projection_ids:
|
projection_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
to: projection/element_id
|
to: projection/element_id
|
||||||
@ -916,34 +1090,70 @@ motion_block:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/motion_block_ids
|
to: meeting/motion_block_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
motion_change_recommendation:
|
motion_change_recommendation:
|
||||||
id: number
|
id: number
|
||||||
rejected: boolean
|
rejected: boolean
|
||||||
internal: boolean
|
internal: boolean
|
||||||
|
type:
|
||||||
type: number
|
type: number
|
||||||
|
enum:
|
||||||
|
- 0
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
- 3
|
||||||
other_description: string
|
other_description: string
|
||||||
line_from: number
|
line_from:
|
||||||
line_to: number
|
type: number
|
||||||
|
minimum: 0
|
||||||
|
line_to:
|
||||||
|
type: number
|
||||||
|
minimum: 0
|
||||||
text: HTML
|
text: HTML
|
||||||
creation_time: datetime
|
creation_time:
|
||||||
|
type: datetime
|
||||||
|
read_only: true
|
||||||
|
|
||||||
motion_id:
|
motion_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: motion/change_recommendation_ids
|
to: motion/change_recommendation_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
motion_state:
|
motion_state:
|
||||||
id: number
|
id: number
|
||||||
name: string
|
name:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
recommendation_label: string
|
recommendation_label: string
|
||||||
css_class: string
|
css_class:
|
||||||
restrictions: string[]
|
type: string
|
||||||
|
enum:
|
||||||
|
- gray
|
||||||
|
- red
|
||||||
|
- green
|
||||||
|
- lightblue
|
||||||
|
- yellow
|
||||||
|
restrictions:
|
||||||
|
type: string[]
|
||||||
|
items:
|
||||||
|
enum:
|
||||||
|
- motions.can_see_internal
|
||||||
|
- motions.can_manage_metadata
|
||||||
|
- motions.can_manage
|
||||||
|
- is_submitter
|
||||||
allow_support: boolean
|
allow_support: boolean
|
||||||
allow_create_poll: boolean
|
allow_create_poll: boolean
|
||||||
allow_submitter_edit: boolean
|
allow_submitter_edit: boolean
|
||||||
set_number: boolean
|
set_number: boolean
|
||||||
show_state_extension_field: boolean
|
show_state_extension_field: boolean
|
||||||
merge_amendment_into_final: number
|
merge_amendment_into_final:
|
||||||
|
type: number
|
||||||
|
default: 0
|
||||||
|
enum:
|
||||||
|
- -1
|
||||||
|
- 0
|
||||||
|
- 1
|
||||||
show_recommendation_extension_field: boolean
|
show_recommendation_extension_field: boolean
|
||||||
|
|
||||||
next_state_ids:
|
next_state_ids:
|
||||||
@ -961,13 +1171,16 @@ motion_state:
|
|||||||
workflow_id:
|
workflow_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: motion_workflow/state_ids
|
to: motion_workflow/state_ids
|
||||||
|
required: true
|
||||||
first_state_of_workflow_id:
|
first_state_of_workflow_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: motion_workflow/first_state_id
|
to: motion_workflow/first_state_id
|
||||||
|
|
||||||
motion_workflow:
|
motion_workflow:
|
||||||
id: number
|
id: number
|
||||||
name: string
|
name:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
|
||||||
state_ids:
|
state_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
@ -975,6 +1188,7 @@ motion_workflow:
|
|||||||
first_state_id:
|
first_state_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: motion_state/first_state_of_workflow_id
|
to: motion_state/first_state_of_workflow_id
|
||||||
|
required: true
|
||||||
default_workflow_meeting_id:
|
default_workflow_meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/motions_default_workflow_id
|
to: meeting/motions_default_workflow_id
|
||||||
@ -987,10 +1201,13 @@ motion_workflow:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/motion_workflow_ids
|
to: meeting/motion_workflow_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
motion_statute_paragraph:
|
motion_statute_paragraph:
|
||||||
id: number
|
id: number
|
||||||
title: string
|
title:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
text: HTML
|
text: HTML
|
||||||
weight:
|
weight:
|
||||||
type: number
|
type: number
|
||||||
@ -1002,6 +1219,7 @@ motion_statute_paragraph:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/motion_statute_paragraph_ids
|
to: meeting/motion_statute_paragraph_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
motion_poll:
|
motion_poll:
|
||||||
id: number
|
id: number
|
||||||
@ -1075,10 +1293,19 @@ motion_vote:
|
|||||||
|
|
||||||
assignment:
|
assignment:
|
||||||
id: number
|
id: number
|
||||||
title: string
|
title:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
description: HTML
|
description: HTML
|
||||||
open_posts: number
|
open_posts:
|
||||||
phase: number
|
type: number
|
||||||
|
minimum: 0
|
||||||
|
phase:
|
||||||
|
type: number
|
||||||
|
enum:
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
- 3
|
||||||
default_poll_description: string
|
default_poll_description: string
|
||||||
number_poll_candidates: boolean
|
number_poll_candidates: boolean
|
||||||
|
|
||||||
@ -1094,6 +1321,7 @@ assignment:
|
|||||||
list_of_speakers_id:
|
list_of_speakers_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: list_of_speakers/content_object_id
|
to: list_of_speakers/content_object_id
|
||||||
|
required: true
|
||||||
tag_ids:
|
tag_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
to: tag/tagged_ids
|
to: tag/tagged_ids
|
||||||
@ -1109,6 +1337,7 @@ assignment:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/assignment_ids
|
to: meeting/assignment_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
assignment_candidate:
|
assignment_candidate:
|
||||||
id: number
|
id: number
|
||||||
@ -1220,18 +1449,31 @@ assignment_vote:
|
|||||||
# `<media-prefix>/media/<meeting_id>/path`
|
# `<media-prefix>/media/<meeting_id>/path`
|
||||||
mediafile:
|
mediafile:
|
||||||
id: number
|
id: number
|
||||||
title: string # title and parent_id must be unique.
|
title:
|
||||||
|
type: string
|
||||||
|
description: Title and parent_id must be unique.
|
||||||
is_directory: boolean
|
is_directory: boolean
|
||||||
filesize: number # Note: in bytes, not the human readable format anymore
|
filesize:
|
||||||
filename: string # Note: The uploaded filename. will be used for downloading. Only writeable on create.
|
type: number
|
||||||
|
description: In bytes, not the human readable format anymore.
|
||||||
|
read_only: true
|
||||||
|
filename:
|
||||||
|
type: string
|
||||||
|
descriptin: The uploaded filename. Will be used for downloading. Only writeable on create.
|
||||||
|
required: true
|
||||||
mimetype: string
|
mimetype: string
|
||||||
pdf_information: JSON
|
pdf_information: JSON
|
||||||
create_timestamp: datetime
|
create_timestamp: datetime
|
||||||
has_inherited_access_groups: boolean # Note: calculated
|
has_inherited_access_groups:
|
||||||
|
type: boolean
|
||||||
|
description: Calculated field.
|
||||||
|
read_only: true
|
||||||
|
|
||||||
inherited_access_group_ids:
|
inherited_access_group_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
to: group/mediafile_inherited_access_group_ids # Note: calculated
|
to: group/mediafile_inherited_access_group_ids
|
||||||
|
description: Calculated field.
|
||||||
|
read_only: true
|
||||||
access_group_ids:
|
access_group_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
to: group/mediafile_access_group_ids
|
to: group/mediafile_access_group_ids
|
||||||
@ -1244,6 +1486,7 @@ mediafile:
|
|||||||
list_of_speakers_id:
|
list_of_speakers_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: list_of_speakers/content_object_id
|
to: list_of_speakers/content_object_id
|
||||||
|
required: true
|
||||||
projection_ids:
|
projection_ids:
|
||||||
type: relation-list
|
type: relation-list
|
||||||
to: projection/element_id
|
to: projection/element_id
|
||||||
@ -1261,6 +1504,7 @@ mediafile:
|
|||||||
meeting_id:
|
meeting_id:
|
||||||
type: relation
|
type: relation
|
||||||
to: meeting/mediafile_ids
|
to: meeting/mediafile_ids
|
||||||
|
required: true
|
||||||
|
|
||||||
# Reverse relations for meetings, if a mediafile is used as a special resource
|
# Reverse relations for meetings, if a mediafile is used as a special resource
|
||||||
used_as_logo_$_in_meeting_id:
|
used_as_logo_$_in_meeting_id:
|
||||||
|
Loading…
Reference in New Issue
Block a user