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/models.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/db/models.go') diff --git a/backend/db/models.go b/backend/db/models.go index cc08817..35ebd03 100644 --- a/backend/db/models.go +++ b/backend/db/models.go @@ -15,7 +15,7 @@ type Game struct { DurationSeconds int32 CreatedAt pgtype.Timestamp StartedAt pgtype.Timestamp - ProblemID pgtype.Int4 + ProblemID *int32 } type GamePlayer struct { @@ -33,7 +33,7 @@ type User struct { UserID int32 Username string DisplayName string - IconPath pgtype.Text + IconPath *string IsAdmin bool CreatedAt pgtype.Timestamp } @@ -42,5 +42,5 @@ type UserAuth struct { UserAuthID int32 UserID int32 AuthType string - PasswordHash pgtype.Text + PasswordHash *string } -- cgit v1.2.3-70-g09d2