chore: init repository
This commit is contained in:
17
internal/user/model.go
Executable file
17
internal/user/model.go
Executable file
@@ -0,0 +1,17 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type User struct {
|
||||
UserEditable
|
||||
ID string `json:"id"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
GoogleID string `json:"-"`
|
||||
}
|
||||
|
||||
type UserEditable struct {
|
||||
Email string `json:"email" validate:"required"`
|
||||
}
|
||||
Reference in New Issue
Block a user