User list
This commit is contained in:
18
app/models/user.go
Normal file
18
app/models/user.go
Normal file
@ -0,0 +1,18 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
Id string `gorm:"type(uuid);unique"`
|
||||
Email string `gorm:"unique"`
|
||||
FirstName string
|
||||
LastName string
|
||||
Password string
|
||||
IsActive bool
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
func (u *User) TableName() string {
|
||||
return "users"
|
||||
}
|
||||
Reference in New Issue
Block a user