13 lines
293 B
Go
13 lines
293 B
Go
package models
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type User struct {
|
|
gorm.Model
|
|
Name string `json:"name" binding:"required" gorm:"unique;not null"`
|
|
Password string `json:"password" binding:"required" gorm:"not null"`
|
|
Email string `json:"email" binding:"required,email" gorm:"unique;not null"`
|
|
}
|