19 lines
660 B
Go
19 lines
660 B
Go
|
package model
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type User struct {
|
||
|
Neptun string `db:"neptun" form:"neptun" validate:"required,len=6"`
|
||
|
Email string `db:"email" form:"email" validate:"required,email"`
|
||
|
Password string `db:"password_hash" form:"password" validate:"required,min=6,max=32"`
|
||
|
}
|
||
|
|
||
|
type Task struct {
|
||
|
ID int `db:"id"`
|
||
|
Description string `db:"description" form:"description"`
|
||
|
Points int `db:"points" form:"points" validate:"required"`
|
||
|
Recipient string `db:"recipient" form:"recipient" validate:"required,len=6"`
|
||
|
Issuer string `db:"issuer" form:"issuer" validate:"required,len=6"`
|
||
|
Date time.Time `db:"date"`
|
||
|
}
|