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/models.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/models.go')
| -rw-r--r-- | backend/db/models.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |
