diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-29 03:06:44 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-29 03:06:44 +0900 |
| commit | 19b19e7f48d6375806f827713a98cffd2c57a434 (patch) | |
| tree | 5b68e70a65a2434517c7e1ea5ea330fd686049d4 /backend/db/query.sql.go | |
| parent | d1c8aa42aec32c8b042ae32d249df9c3c969453d (diff) | |
| download | iosdc-japan-2024-albatross-19b19e7f48d6375806f827713a98cffd2c57a434.tar.gz iosdc-japan-2024-albatross-19b19e7f48d6375806f827713a98cffd2c57a434.tar.zst iosdc-japan-2024-albatross-19b19e7f48d6375806f827713a98cffd2c57a434.zip | |
refactor(backend): enable emit_pointers_for_null_types in sqlc
Diffstat (limited to 'backend/db/query.sql.go')
| -rw-r--r-- | backend/db/query.sql.go | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/backend/db/query.sql.go b/backend/db/query.sql.go index 1b9f392..2086815 100644 --- a/backend/db/query.sql.go +++ b/backend/db/query.sql.go @@ -25,10 +25,10 @@ type GetGameByIdRow struct { DurationSeconds int32 CreatedAt pgtype.Timestamp StartedAt pgtype.Timestamp - ProblemID pgtype.Int4 - ProblemID_2 pgtype.Int4 - Title pgtype.Text - Description pgtype.Text + ProblemID *int32 + ProblemID_2 *int32 + Title *string + Description *string } func (q *Queries) GetGameById(ctx context.Context, gameID int32) (GetGameByIdRow, error) { @@ -60,13 +60,13 @@ type GetUserAuthByUsernameRow struct { UserID int32 Username string DisplayName string - IconPath pgtype.Text + IconPath *string IsAdmin bool CreatedAt pgtype.Timestamp UserAuthID int32 UserID_2 int32 AuthType string - PasswordHash pgtype.Text + PasswordHash *string } func (q *Queries) GetUserAuthByUsername(ctx context.Context, username string) (GetUserAuthByUsernameRow, error) { @@ -119,10 +119,10 @@ type ListGamesRow struct { DurationSeconds int32 CreatedAt pgtype.Timestamp StartedAt pgtype.Timestamp - ProblemID pgtype.Int4 - ProblemID_2 pgtype.Int4 - Title pgtype.Text - Description pgtype.Text + ProblemID *int32 + ProblemID_2 *int32 + Title *string + Description *string } func (q *Queries) ListGames(ctx context.Context) ([]ListGamesRow, error) { @@ -170,10 +170,10 @@ type ListGamesForPlayerRow struct { DurationSeconds int32 CreatedAt pgtype.Timestamp StartedAt pgtype.Timestamp - ProblemID pgtype.Int4 - ProblemID_2 pgtype.Int4 - Title pgtype.Text - Description pgtype.Text + ProblemID *int32 + ProblemID_2 *int32 + Title *string + Description *string GameID_2 int32 UserID int32 } |
