aboutsummaryrefslogtreecommitdiff
path: root/pkg/model/users.go
blob: 943d161385ed0798e8f43b7307ee3659bffec24d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package model

import "time"

type User struct {
	Id            int        `json:"id"`
	Username      string     `json:"username"`
	Email         string     `json:"email"`
	Created_at    *time.Time `json:"created_at"`
	Last_login_at *time.Time `json:"last_login_at"`
}

type UserLogin struct {
	Username string
	Password string
}

type UserRegistration struct {
	Username string
	Password string
	Email    string
}