recreate migration create table users; with unique constrains

This commit is contained in:
valitovgaziz
2024-08-19 21:42:02 +05:00
parent 4b7af37296
commit 568d09d0a2
5 changed files with 22 additions and 23 deletions
+3 -2
View File
@@ -4,7 +4,7 @@ import (
"github.com/golang-jwt/jwt/v4"
)
type Crenetials struct {
type Credentials struct {
Name string `json:"name"`
Email string `json:"email"`
Password string `json:"password"`
@@ -14,4 +14,5 @@ type Crenetials struct {
type Claims struct {
jwt.RegisteredClaims
Email string `json:"email"`
}
Phone string `json:"phone"`
}