implement dbhandler package and new test file
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user