change table to references

This commit is contained in:
Adrian Zürcher
2025-11-20 10:40:56 +01:00
parent 4a469d1fd4
commit fe194754b1
14 changed files with 101 additions and 168 deletions

View File

@@ -1,9 +1,9 @@
package models
type Event struct {
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"`
Id int `gorm:"primaryKey" json:"id"`
Name string `gorm:"column:name" json:"name"`
Date string `gorm:"column:date" json:"date"`
Day string `gorm:"column:day" json:"day"`
Attendees []*Member `gorm:"many2many:member_events;"`
}