aboutsummaryrefslogtreecommitdiff
path: root/src/user
diff options
context:
space:
mode:
authorAlexander Kavon <hawk@alexkavon.com>2023-11-28 18:42:04 -0500
committerAlexander Kavon <hawk@alexkavon.com>2023-11-28 18:42:04 -0500
commitc03ad4292cebf9661157a4fbec55d720d9aede93 (patch)
tree53ae047ca245fceae7fbe7fb9d458097c9c704ab /src/user
parent1597c23f84346dfa44da9605286863b11006bdb5 (diff)
add database connections, user model insert
Diffstat (limited to 'src/user')
-rw-r--r--src/user/user.go17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/user/user.go b/src/user/user.go
index 97fe74c..83e39e3 100644
--- a/src/user/user.go
+++ b/src/user/user.go
@@ -1,7 +1,18 @@
package user
+import (
+ "errors"
+ "time"
+)
+
type User struct {
- Id int64 `json:"id"`
- Username string `json:"username"`
- Karma uint64 `json:"karma"`
+ Id int64
+ Username string
+ Karma uint64
+ UpdatedAt time.Time
+ CreatedAt time.Time
+}
+
+func NewUser(username, secret string) error {
+ return errors.New("Not Implemented")
}