aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/db/models.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-22 04:36:45 +0900
committernsfisis <nsfisis@gmail.com>2024-07-22 04:36:53 +0900
commita4685927a1f7fe8374a567ee74cc62aad639f4c3 (patch)
tree1eaf5845965c4d5d2db4faf9582c17444a762ffd /backend/db/models.go
parent2512da7ca57dc4c52900417a50daf4f6f2f74054 (diff)
downloadiosdc-japan-2024-albatross-a4685927a1f7fe8374a567ee74cc62aad639f4c3.tar.gz
iosdc-japan-2024-albatross-a4685927a1f7fe8374a567ee74cc62aad639f4c3.tar.zst
iosdc-japan-2024-albatross-a4685927a1f7fe8374a567ee74cc62aad639f4c3.zip
user login
Diffstat (limited to 'backend/db/models.go')
-rw-r--r--backend/db/models.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/backend/db/models.go b/backend/db/models.go
new file mode 100644
index 0000000..bc2010d
--- /dev/null
+++ b/backend/db/models.go
@@ -0,0 +1,32 @@
+// Code generated by sqlc. DO NOT EDIT.
+// versions:
+// sqlc v1.26.0
+
+package db
+
+import (
+ "github.com/jackc/pgx/v5/pgtype"
+)
+
+type Game struct {
+ GameID int32
+ Type string
+ CreatedAt pgtype.Timestamp
+ State string
+}
+
+type User struct {
+ UserID int32
+ Username string
+ DisplayUsername string
+ IconUrl pgtype.Text
+ IsAdmin bool
+ CreatedAt pgtype.Timestamp
+}
+
+type UserAuth struct {
+ UserAuthID int32
+ UserID int32
+ AuthType string
+ PasswordHash pgtype.Text
+}