routes created, users controllers, user_repository, model users.go, main.go
This commit is contained in:
15
models/users.go
Normal file
15
models/users.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
ID uint `gorm:"primary_key"`
|
||||
Name string
|
||||
LastName string
|
||||
Email string
|
||||
Password string `gorm:"not null"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user