change table to references
This commit is contained in:
@@ -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;"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user