diff options
Diffstat (limited to 'api/internal/models/auth.go')
-rw-r--r-- | api/internal/models/auth.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/api/internal/models/auth.go b/api/internal/models/auth.go new file mode 100644 index 0000000..41344d5 --- /dev/null +++ b/api/internal/models/auth.go | |||
@@ -0,0 +1,11 @@ | |||
1 | package models | ||
2 | |||
3 | import "time" | ||
4 | |||
5 | type Token struct { | ||
6 | ID int64 `json:"-"` | ||
7 | UserID int64 `json:"user_id"` | ||
8 | Token string `json:"token"` | ||
9 | CreatedAt time.Time `json:"created_at"` | ||
10 | ExpiredAt time.Time `json:"expired_at"` | ||
11 | } | ||