add session struct

master
Alex 2021-05-28 22:06:11 +02:00
parent 720b2e876e
commit b3c03a1dca
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
package structs
import "time"
// User represents a session
// swagger:model
type Session struct {
UserId string
SessionId string
IP string
UserAgent string
LastLogin time.Time
Expires time.Time
}