package models import "time" type Participant struct { Id int32 `db:"id"` UserId int32 `db:"user_id"` ContestId int32 `db:"contest_id"` Name string `db:"name"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` } type ParticipantsListItem struct { Id int32 `db:"id"` UserId int32 `db:"user_id"` ContestId int32 `db:"contest_id"` Name string `db:"name"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` } type ParticipantUpdate struct { Name *string `json:"name"` }