feat(authentication): Added authentication controller & JWTMiddleware

This commit is contained in:
2026-05-28 17:58:20 +03:30
parent bdb2fcc68f
commit 0b4cb868e7
9 changed files with 603 additions and 64 deletions
+17
View File
@@ -0,0 +1,17 @@
package models
import (
"github.com/gofrs/uuid/v5"
"github.com/jackc/pgx/v5/pgtype"
)
type UserModel struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Username string `json:"username"`
Email string `json:"email"`
Phone string `json:"phone"`
Password string `json:"-"`
CreatedAt pgtype.Timestamp `json:"createdAt"`
UpdatedAt pgtype.Timestamp `json:"updatedAt"`
}