From f6a073fc398f22c8f7d4cf2203dd8b1b5ff0645f Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Tue, 10 Oct 2023 18:50:54 +0200 Subject: [PATCH] =?UTF-8?q?Alle=20n=C3=B6tigen=20types=20f=C3=BCr=20Questi?= =?UTF-8?q?onaire=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/types/types.go | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/packages/types/types.go b/packages/types/types.go index baf87ee..9e1542d 100644 --- a/packages/types/types.go +++ b/packages/types/types.go @@ -7,10 +7,28 @@ type Person struct { type Instructor Person +type QAElement struct { + ID int + Text string +} + +type Answer QAElement + +type Question struct { + QAElement + Answers []Answer +} + +type Questionaire struct { + UUID string + Questions []Question +} + type Participant struct { ID int64 Person - Company string + Company string + Questionaire Questionaire } type Briefing struct {