redo main/register page
This commit is contained in:
1 parent
eaa2febbf2
commit
1ad5eb654b
400 files changed
+93168
-323
No files matched your search
@@ -1,15 +0,0 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type Photo struct {
|
||||
ID primitive.ObjectID `bson:"_id"`
|
||||
Name string `json:"name" validate:"required"`
|
||||
Base64 string `json:"base64" validate:"required"`
|
||||
Created_at time.Time `json:"created_at"`
|
||||
Updated_at time.Time `json:"updated_at"`
|
||||
}
|
||||
+3
-2
@@ -19,12 +19,13 @@ var (
|
||||
|
||||
type User struct {
|
||||
ID primitive.ObjectID `bson:"_id"`
|
||||
Firstname string `json:"firstname"`
|
||||
Lastname string `json:"lastname"`
|
||||
Username string `json:"username" validate:"required"`
|
||||
Email string `json:"email" validate:"required"`
|
||||
Password string `json:"-" validate:"min=10,max=32"`
|
||||
TempPassword bool `json:"temppassword"`
|
||||
AccountType string `json:"accounttype"`
|
||||
PhotoName string `json:"photoname"` // name of photo in db
|
||||
Subscription string `json:"subscription"` // standard, professional, business
|
||||
Created_at time.Time `json:"created_at"`
|
||||
Updated_at time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user