Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadExistingDatabase ¶
LoadExistingDatabase opens an existing database and runs migrations
Types ¶
type TokenData ¶
type TokenData struct { gorm.Model AssociatedUserID uint // Foreign key for User AssociatedUser User `gorm:"foreignKey:AssociatedUserID"` // The user who made the token Generated time.Time `gorm:"not null"` // when they made the token Token string `gorm:"uniqueIndex;not null"` // The token Disabled bool `gorm:"default:false"` // when true, it's blacklisted }
Click to show internal directories.
Click to hide internal directories.