feat(tester):
This commit is contained in:
parent
52d38d07bb
commit
50a4f87f53
9 changed files with 104 additions and 22 deletions
|
@ -1,10 +1,21 @@
|
|||
package models
|
||||
|
||||
//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"`
|
||||
//}
|
||||
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"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue