Skip to content

Commit 6c8d41c

Browse files
committed
enhance: adjust capital case res tag and speaker to lowercase
1 parent afed01e commit 6c8d41c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

domain/event.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ type Event struct {
7272
Location string `json:"location"`
7373
Duration string `json:"duration"`
7474
Capacity int `json:"capacity"`
75-
Status string `json:"status"` // comming soon
76-
Tags []EventTag `gorm:"foreignKey:EventID;constraint:OnDelete:CASCADE;"` // Ensure foreign key is correctly referenced
77-
Speakers []EventSpeaker `gorm:"foreignKey:EventID;constraint:OnDelete:CASCADE;"` // Ensure foreign key is correctly referenced
75+
Status string `json:"status"`
76+
Tags []EventTag `json:"tags" gorm:"foreignKey:EventID;constraint:OnDelete:CASCADE;"`
77+
Speakers []EventSpeaker `json:"speakers" gorm:"foreignKey:EventID;constraint:OnDelete:CASCADE;"`
7878
RegistrationLink string `json:"registration_link"`
7979
Price float64 `json:"price"` // 0 == free
8080
CreatedBy int `json:"-"`

0 commit comments

Comments
 (0)