add service
This commit is contained in:
15
internal/model/session.go
Normal file
15
internal/model/session.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type Session struct {
|
||||
ID int
|
||||
UserID int
|
||||
AccessToken string
|
||||
RefreshToken string
|
||||
IP string
|
||||
UserAgent string
|
||||
CreatedAt time.Time
|
||||
ExpiresAt time.Time
|
||||
RevokedAt *time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user