2017-02-23 06:12:16 +01:00
|
|
|
package db
|
2016-01-05 00:32:53 +01:00
|
|
|
|
2016-04-30 14:28:47 +02:00
|
|
|
import "time"
|
2016-01-05 00:32:53 +01:00
|
|
|
|
2018-03-27 22:12:47 +02:00
|
|
|
// Session is a connection to the API
|
2016-01-05 00:32:53 +01:00
|
|
|
type Session struct {
|
2016-04-30 14:28:47 +02:00
|
|
|
ID int `db:"id" json:"id"`
|
|
|
|
UserID int `db:"user_id" json:"user_id"`
|
|
|
|
Created time.Time `db:"created" json:"created"`
|
|
|
|
LastActive time.Time `db:"last_active" json:"last_active"`
|
|
|
|
IP string `db:"ip" json:"ip"`
|
|
|
|
UserAgent string `db:"user_agent" json:"user_agent"`
|
|
|
|
Expired bool `db:"expired" json:"expired"`
|
2016-01-05 00:32:53 +01:00
|
|
|
}
|