This simple go program creates jwt tokens based on gin.

This commit is contained in:
2023-03-30 00:01:31 +02:00
parent bfc2c3584c
commit f53fc43920
13 changed files with 434 additions and 1 deletions

10
models/userModel.go Normal file
View File

@@ -0,0 +1,10 @@
package models
import "gorm.io/gorm"
type User struct {
gorm.Model
Name string
Email string `gorm:"unique"`
Password string
}