add CreatedAt&UpdatedAt to contest model

This commit is contained in:
dragonmuffin 2024-08-16 22:16:53 +05:00
parent f2f1beeec9
commit b0b895f9bd

View file

@ -1,8 +1,8 @@
package models
type Contest struct {
Id *int `db:"id"`
Name *string `db:"name"`
//CreatedAt time.Time `db:"created_at"` FIXME
//UpdatedAt time.Time `db:"updated_at"` FIXME
Id *int `db:"id"`
Name *string `db:"name"`
CreatedAt *time.Time `db:"created_at"`
UpdatedAt *time.Time `db:"updated_at"`
}