blob: 3086c3b79fce3c825be0093bbc51cc62711f2f55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
package db
import (
"github.com/jackc/pgx/v5/pgtype"
)
type Game struct {
GameID int32
GameType string
IsPublic bool
DisplayName string
DurationSeconds int32
CreatedAt pgtype.Timestamp
StartedAt pgtype.Timestamp
ProblemID int32
}
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
Language string
SampleCode string
}
type Session struct {
SessionID string
UserID int32
ExpiresAt pgtype.Timestamp
CreatedAt pgtype.Timestamp
}
type Submission struct {
SubmissionID int32
GameID int32
UserID int32
Code string
CodeSize int32
Status string
CreatedAt pgtype.Timestamp
}
type Testcase struct {
TestcaseID int32
ProblemID int32
Stdin string
Stdout string
}
type TestcaseResult struct {
TestcaseResultID int32
SubmissionID int32
TestcaseID int32
Status string
Stdout string
Stderr string
CreatedAt pgtype.Timestamp
}
type Tournament struct {
TournamentID int32
DisplayName string
BracketSize int32
NumRounds int32
CreatedAt pgtype.Timestamp
}
type TournamentEntry struct {
TournamentEntryID int32
TournamentID int32
UserID int32
Seed int32
}
type TournamentMatch struct {
TournamentMatchID int32
TournamentID int32
Round int32
Position int32
GameID *int32
}
type User struct {
UserID int32
Username string
DisplayName string
IconPath *string
IsAdmin bool
Label *string
CreatedAt pgtype.Timestamp
}
type UserAuth struct {
UserAuthID int32
UserID int32
AuthType string
PasswordHash *string
}
|