Migrated from React to NextJS
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
jwt "github.com/dgrijalva/jwt-go"
|
||||
)
|
||||
|
||||
type Claim struct {
|
||||
ID int64 `json:"id,omitempty"`
|
||||
|
||||
jwt.StandardClaims
|
||||
}
|
@@ -1,15 +0,0 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
ID int64 `json:"id,omitempty" gorm:"primaryKey"`
|
||||
Login string `json:"name,omitempty" gorm:"unique"`
|
||||
Email string `json:"email"`
|
||||
Password string `json:"password,omitempty"`
|
||||
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
Reference in New Issue
Block a user