20 lines
249 B
Go
20 lines
249 B
Go
package entity
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
TokenStatusAllowed = "ALLOWED"
|
|
TokenStatusRevoked = "REVOKED"
|
|
)
|
|
|
|
type Token struct {
|
|
Token string
|
|
UserId int64
|
|
Status string
|
|
ExpiredAt time.Time
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|