73 lines
1.6 KiB
Go
Raw Permalink Normal View History

2023-11-01 14:11:00 +01:00
/*
* Sicherheitsunterweisung
* Copyright (C) 2023 Jason Streifling
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package data
2023-10-19 19:59:11 +02:00
2023-10-28 08:57:15 +02:00
import "database/sql"
type DB struct {
*sql.DB
}
type Person struct {
FirstName string
LastName string
ID int64
}
type Instructor Person
type Participant struct {
Company string
Person
}
type Briefing struct {
DateTime string
Location string
Document string
AsOf string
InstructorID int64
ID int64
}
type Answer struct {
2023-11-02 17:52:04 +01:00
Text string
IsImage bool // TODO: relocate to sessionStructs if possible
ID int64
}
type Question struct {
Text string
Answers []Answer
Correct int
ID int64
}
type GivenAnswer struct {
BriefingID int64
ParticipantID int64
QuestionID int64
GivenAnswer int
}
type OverviewTableData struct {
InstructorFirstName string
InstructorLastName string
BriefingDateTime string
BriefingLocation string
BriefingDocument string
BriefingAsOf string
ParticipantFirstName string
ParticipantLastName string
ParticipantCompany string
}