summaryrefslogtreecommitdiff
path: root/api/database/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/database/models.go')
-rw-r--r--api/database/models.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/api/database/models.go b/api/database/models.go
deleted file mode 100644
index a6e76c5..0000000
--- a/api/database/models.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package database
-
-import "time"
-
-type User struct {
- ID int `json:"id"`
- Username string `json:"username"`
- Password string `json:"password"`
- CreatedAt time.Time `json:"created_at"`
- UpdatedAt time.Time `json:"updated_at"`
-}
-
-type Game struct {
- ID int `json:"id"`
- Player1ID int `json:"-"`
- Player1 User `gorm:"foreignKey:Player1ID" json:"player1"`
- Player2ID *int `json:"-"`
- Player2 *User `gorm:"foreignKey:Player2ID;null" json:"player2"`
- Name string `json:"name"`
- IP1 string `json:"ip1"`
- IP2 string `json:"ip2"`
- CreatedAt time.Time `json:"created_at"`
- UpdatedAt time.Time `json:"updated_at"`
-}