Typen dem neuen Datenbanklayout angepasst
This commit is contained in:
		@@ -1,36 +1,43 @@
 | 
			
		||||
package types
 | 
			
		||||
 | 
			
		||||
type Person struct {
 | 
			
		||||
	ID        int
 | 
			
		||||
	FirstName string
 | 
			
		||||
	LastName  string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Instructor Person
 | 
			
		||||
 | 
			
		||||
type Participant struct {
 | 
			
		||||
	Person
 | 
			
		||||
	Company string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Briefing struct {
 | 
			
		||||
	ID           int
 | 
			
		||||
	Date         string
 | 
			
		||||
	Time         string
 | 
			
		||||
	Location     string
 | 
			
		||||
	DocumentName string
 | 
			
		||||
	AsOf         string
 | 
			
		||||
	InstructorID int
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Answer struct {
 | 
			
		||||
	ID   int
 | 
			
		||||
	Text string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Question struct {
 | 
			
		||||
	ID      int
 | 
			
		||||
	Text    string
 | 
			
		||||
	Answers []Answer
 | 
			
		||||
	Chosen  int
 | 
			
		||||
	Correct int
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Participant struct {
 | 
			
		||||
	ID int64
 | 
			
		||||
	Person
 | 
			
		||||
	Company   string
 | 
			
		||||
	Questions []Question
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Briefing struct {
 | 
			
		||||
	Instructor
 | 
			
		||||
	Date         string
 | 
			
		||||
	Time         string
 | 
			
		||||
	State        string
 | 
			
		||||
	Location     string
 | 
			
		||||
	Participants []*Participant
 | 
			
		||||
type GivenAnswer struct {
 | 
			
		||||
	BriefingID    int
 | 
			
		||||
	ParticipantID int
 | 
			
		||||
	QuestionID    int
 | 
			
		||||
	GivenAnswer   int
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user