aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/db/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/db/models.go')
-rw-r--r--backend/db/models.go26
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