diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-04 22:55:01 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-08 10:12:44 +0900 |
| commit | 1e6df136d8202c8adf65948527f4c3e7583b338c (patch) | |
| tree | 7c82476f6bbbc71d72ab7e71e39559eca197fd95 /backend/db/models.go | |
| parent | 54316868c3bec1ff9b04643dfe6c13cf56bf3246 (diff) | |
| download | phperkaigi-2025-albatross-1e6df136d8202c8adf65948527f4c3e7583b338c.tar.gz phperkaigi-2025-albatross-1e6df136d8202c8adf65948527f4c3e7583b338c.tar.zst phperkaigi-2025-albatross-1e6df136d8202c8adf65948527f4c3e7583b338c.zip | |
websocket to polling
Diffstat (limited to 'backend/db/models.go')
| -rw-r--r-- | backend/db/models.go | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/backend/db/models.go b/backend/db/models.go index b21fd9b..18799b1 100644 --- a/backend/db/models.go +++ b/backend/db/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.26.0 +// sqlc v1.28.0 package db @@ -11,7 +11,7 @@ import ( type Game struct { GameID int32 GameType string - State string + IsPublic bool DisplayName string DurationSeconds int32 CreatedAt pgtype.Timestamp @@ -19,15 +19,24 @@ type Game struct { ProblemID int32 } -type GamePlayer struct { +type GameMainPlayer struct { GameID int32 UserID int32 } +type GameState struct { + GameID int32 + UserID int32 + Code string + Status string + BestScoreSubmissionID *int32 +} + type Problem struct { ProblemID int32 Title string Description string + SampleCode string } type Submission struct { @@ -36,19 +45,10 @@ type Submission struct { UserID int32 Code string CodeSize int32 - CodeHash string + Status string CreatedAt pgtype.Timestamp } -type SubmissionResult struct { - SubmissionResultID int32 - SubmissionID int32 - Status string - Stdout string - Stderr string - CreatedAt pgtype.Timestamp -} - type Testcase struct { TestcaseID int32 ProblemID int32 |
