From 19b19e7f48d6375806f827713a98cffd2c57a434 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 29 Jul 2024 03:06:44 +0900 Subject: refactor(backend): enable emit_pointers_for_null_types in sqlc --- backend/db/query.sql.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'backend/db/query.sql.go') 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 } -- cgit v1.2.3-70-g09d2