aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/db/models.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-28 17:13:01 +0900
committernsfisis <nsfisis@gmail.com>2024-07-28 17:13:01 +0900
commitaadc8cf037855b99cb82798c7b0ebaafc5bb025b (patch)
tree4ea9f9db9dbe7cf1b7720205ae281a6b8bcca8e9 /backend/db/models.go
parent90741e8336b4ffba090bf08c3b899992860e2d98 (diff)
parent2d5f913a431c4223a16c88551ffff4100ac483c4 (diff)
downloadiosdc-japan-2024-albatross-aadc8cf037855b99cb82798c7b0ebaafc5bb025b.tar.gz
iosdc-japan-2024-albatross-aadc8cf037855b99cb82798c7b0ebaafc5bb025b.tar.zst
iosdc-japan-2024-albatross-aadc8cf037855b99cb82798c7b0ebaafc5bb025b.zip
Merge branch 'game-entry'
Diffstat (limited to 'backend/db/models.go')
-rw-r--r--backend/db/models.go22
1 files changed, 18 insertions, 4 deletions
diff --git a/backend/db/models.go b/backend/db/models.go
index a54fd8c..cc08817 100644
--- a/backend/db/models.go
+++ b/backend/db/models.go
@@ -9,10 +9,24 @@ import (
)
type Game struct {
- GameID int32
- Type string
- CreatedAt pgtype.Timestamp
- State string
+ GameID int32
+ State string
+ DisplayName string
+ DurationSeconds int32
+ CreatedAt pgtype.Timestamp
+ StartedAt pgtype.Timestamp
+ ProblemID pgtype.Int4
+}
+
+type GamePlayer struct {
+ GameID int32
+ UserID int32
+}
+
+type Problem struct {
+ ProblemID int32
+ Title string
+ Description string
}
type User struct {