implement Scylla database

This commit is contained in:
2025-05-17 21:45:18 -04:00
parent 252b49ae6a
commit f8a550883d
199 changed files with 71243 additions and 424 deletions

View File

@@ -89,8 +89,8 @@ func ListUsers(w http.ResponseWriter, r *http.Request) {
}
}
func newUserID() string {
return "user_" + uuid.New().String()
func newUserID() uuid.UUID {
return uuid.New()
}
func NewUser(w http.ResponseWriter, r *http.Request) {
@@ -130,9 +130,9 @@ func NewUser(w http.ResponseWriter, r *http.Request) {
type userKey struct{}
type User struct {
ID string `json:"id"`
Name string `json:"name"`
Password string `json:"-"`
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Password string `json:"-"`
}
type UserPayload struct {