summaryrefslogtreecommitdiff
path: root/api/database/models.go
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-04-02 19:31:12 +0200
committerSanto Cariotti <santo@dcariotti.me>2025-04-02 19:37:12 +0200
commita9b84f3f3b1d92335188d43048587e32e0921079 (patch)
treea4313f7660a99745d7d5da4d92dc9509d0dbe35e /api/database/models.go
parent2e92ccd66eb5c31b8fbbcd205d7b4a882450e9d0 (diff)
Init login and frontend
Diffstat (limited to 'api/database/models.go')
-rw-r--r--api/database/models.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/api/database/models.go b/api/database/models.go
new file mode 100644
index 0000000..e309a36
--- /dev/null
+++ b/api/database/models.go
@@ -0,0 +1,11 @@
+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"`
+}