implement dbhandler package and new test file

This commit is contained in:
Adrian Zürcher
2025-10-31 08:11:07 +01:00
parent 1568ee2482
commit 80675ed328
17 changed files with 674 additions and 572 deletions

View File

@@ -1,9 +1,9 @@
package models
type Event struct {
Id int `json:"id"`
Name string `json:"name"`
Date string `json:"date"`
Attendees []Person `json:"attendees"`
Count int `json:"count"`
Id int `gorm:"primaryKey" json:"id"`
Name string `gorm:"column:name" json:"name"`
Date string `gorm:"column:date" json:"date"`
Attendees Persons `gorm:"type:json" json:"attendees"`
Count int `gorm:"column:count" json:"count"`
}