init server

This commit is contained in:
2021-11-03 14:10:58 +01:00
commit 4f9782785d
1603 changed files with 519678 additions and 0 deletions

17
internal/user/model.go Executable file
View 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"`
}