After Finish User Register and Login Service via MVC arch
This commit is contained in:
11
models/user.go
Normal file
11
models/user.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
gorm.Model
|
||||
Username string `grom:"unique"`
|
||||
Password string `grom:"size:255" gorm:"not null"`
|
||||
}
|
||||
Reference in New Issue
Block a user