Acceptance criteria
- Tables will be created to match the following schema, plus appropriate indexes:
ce_question_answers { ceqa_id: bigint, autoincrement, ceqa_event_id: integer, ceqa_user_id: integer, ceqa_question_id: integer, ceqa_answer_option: integer | nullable, ceqa_answer_text: string | nullable } ce_question_aggregation { ceqag_id: bigint | autoincrement, ceqag_event_id: integer, ceqag_question_id: integer, ceqag_answer_option: integer, ceqag_answers_amount: integer } ce_event_questions { ceeq_id: bigint | autoincrement, ceeq_event_id: integer, ceeq_question_id: integer }
- When this task is complete, a task for DBAs to create tables in production (ref: T336365)
Note that other schema changes for the "participant questions" epic are tracked elsewhere:
- Adding the timestamps of when the organizers agreed to the clickwrap agreement to the ce_organizers table: T337768.
- Storing when a participant first answered questions, and whether their answers have already been aggregated: T339982.
External dependencies
- DBA availability