User list

This commit is contained in:
Eden Kirin
2023-10-25 19:54:21 +02:00
parent 34b2f55cfc
commit b143983d52
10 changed files with 160 additions and 34 deletions

18
app/models/user.go Normal file
View 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"
}