aboutsummaryrefslogtreecommitdiff
path: root/api/lib/models.go
blob: 92e5703a7a9f692bb3814684bd0020289579c360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package models

import "time"

type Statistic struct {
    ID int64 `json:"id"`
    Date time.Time `json:"date"`
    UserID int64 `json:"user_id"`
    Quantity int `json:"quantity"`
}

type User struct {
    ID int64
    Name string
}

type Token struct {
    ID int64
    UserID int64
    Token string
    CreatedAt time.Time
    ExpiredAt time.Time
}