mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
17fa7bb407
extract some error checking and logging in places where linting needed or errors not checked
12 lines
289 B
Go
12 lines
289 B
Go
package db
|
|
|
|
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"`
|
|
}
|