71 lines
1.1 KiB
Go
Raw Normal View History

package types
2023-10-19 19:59:11 +02:00
import "github.com/google/uuid"
type Person struct {
ID int64
FirstName string
LastName string
}
2023-10-20 16:33:00 +02:00
type Instructor struct {
Person
PersonnelID int
}
type Participant struct {
Person
Company string
}
type Briefing struct {
ID int64
Date string
Time string
Location string
DocumentName string
AsOf string
InstructorID int64
}
type Answer struct {
ID int64
Text string
}
type Question struct {
ID int64
Text string
Answers []Answer
Correct int
}
type GivenAnswer struct {
BriefingID int64
ParticipantID int64
QuestionID int64
GivenAnswer int
}
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
}