szoe-pontok/model/model.go

19 lines
753 B
Go
Raw Normal View History

2024-10-10 18:22:03 +00:00
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 {
2024-10-11 13:58:12 +00:00
ID int `db:"id" json:"id"`
2024-10-10 19:41:49 +00:00
Description string `db:"description" form:"description" json:"description"`
Points int `db:"points" form:"points" json:"points" validate:"required"`
Recipient string `db:"recipient" form:"recipient" json:"recipient" validate:"required,len=6"`
2024-10-10 21:06:50 +00:00
Issuer string `db:"issuer" form:"issuer" json:"issuer" validate:"len=6"`
2024-10-10 19:41:49 +00:00
CreatedDate time.Time `db:"created_date" json:"created_date"`
2024-10-10 18:22:03 +00:00
}