Semaphore/db/APIToken.go

12 lines
289 B
Go
Raw Normal View History

2017-02-23 06:12:16 +01:00
package db
2016-04-18 02:58:29 +02:00
import "time"
// APIToken is given to a user to allow API access
type APIToken struct {
ID string `db:"id" json:"id"`
Created time.Time `db:"created" json:"created"`
Expired bool `db:"expired" json:"expired"`
UserID int `db:"user_id" json:"user_id"`
}