2023-10-05 19:52:11 +02:00
|
|
|
package types
|
|
|
|
|
2023-10-19 19:59:11 +02:00
|
|
|
import "github.com/google/uuid"
|
|
|
|
|
2023-10-05 19:52:11 +02:00
|
|
|
type Person struct {
|
2023-10-18 16:43:04 +02:00
|
|
|
ID int64
|
2023-10-05 19:52:11 +02:00
|
|
|
FirstName string
|
|
|
|
LastName string
|
|
|
|
}
|
|
|
|
|
2023-10-20 16:33:00 +02:00
|
|
|
type Instructor struct {
|
|
|
|
Person
|
|
|
|
PersonnelID int
|
|
|
|
}
|
2023-10-05 19:52:11 +02:00
|
|
|
|
2023-10-17 17:04:17 +02:00
|
|
|
type Participant struct {
|
|
|
|
Person
|
|
|
|
Company string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Briefing struct {
|
2023-10-18 16:43:04 +02:00
|
|
|
ID int64
|
2023-10-17 17:04:17 +02:00
|
|
|
Date string
|
|
|
|
Time string
|
|
|
|
Location string
|
|
|
|
DocumentName string
|
|
|
|
AsOf string
|
2023-10-18 16:43:04 +02:00
|
|
|
InstructorID int64
|
2023-10-17 17:04:17 +02:00
|
|
|
}
|
|
|
|
|
2023-10-16 18:51:52 +02:00
|
|
|
type Answer struct {
|
2023-10-18 16:43:04 +02:00
|
|
|
ID int64
|
2023-10-10 18:50:54 +02:00
|
|
|
Text string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Question struct {
|
2023-10-18 16:43:04 +02:00
|
|
|
ID int64
|
2023-10-16 18:51:52 +02:00
|
|
|
Text string
|
2023-10-10 18:50:54 +02:00
|
|
|
Answers []Answer
|
2023-10-16 18:51:52 +02:00
|
|
|
Correct int
|
2023-10-10 18:50:54 +02:00
|
|
|
}
|
|
|
|
|
2023-10-17 17:04:17 +02:00
|
|
|
type GivenAnswer struct {
|
2023-10-18 16:43:04 +02:00
|
|
|
BriefingID int64
|
|
|
|
ParticipantID int64
|
|
|
|
QuestionID int64
|
2023-10-17 17:04:17 +02:00
|
|
|
GivenAnswer int
|
2023-10-05 19:52:11 +02:00
|
|
|
}
|
2023-10-17 17:30:39 +02:00
|
|
|
|
|
|
|
type OverviewTableData struct {
|
|
|
|
InstructorFirstName string
|
|
|
|
InstructorLastName string
|
|
|
|
BriefingDate string
|
|
|
|
BriefingTime string
|
|
|
|
BriefingLocation string
|
|
|
|
BriefingDocumentName string
|
|
|
|
BriefingAsOf string
|
|
|
|
ParticipantFirstName string
|
|
|
|
ParticipantLastName string
|
|
|
|
ParticipantCompany string
|
|
|
|
}
|
2023-10-19 19:59:11 +02:00
|
|
|
|
|
|
|
type Session struct {
|
|
|
|
ID uuid.UUID
|
|
|
|
InstructorID int64
|
|
|
|
BriefingID int64
|
|
|
|
Logins []string
|
|
|
|
ParticipantIDs []int64
|
|
|
|
QuestionIDs []int64
|
|
|
|
}
|