This simple go program creates jwt tokens based on gin.
This commit is contained in:
10
models/userModel.go
Normal file
10
models/userModel.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package models
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type User struct {
|
||||
gorm.Model
|
||||
Name string
|
||||
Email string `gorm:"unique"`
|
||||
Password string
|
||||
}
|
||||
Reference in New Issue
Block a user