You've already forked openaccounting-server
forked from cybercinch/openaccounting-server
14 lines
435 B
Go
14 lines
435 B
Go
|
|
package models
|
||
|
|
|
||
|
|
// APIKey represents API keys for users
|
||
|
|
type APIKey struct {
|
||
|
|
ID []byte `gorm:"type:BINARY(16);primaryKey"`
|
||
|
|
Inserted uint64 `gorm:"column:inserted;not null"`
|
||
|
|
Updated uint64 `gorm:"column:updated;not null"`
|
||
|
|
UserID []byte `gorm:"column:userId;type:BINARY(16);not null"`
|
||
|
|
Label string `gorm:"column:label;size:300;not null"`
|
||
|
|
Deleted uint64 `gorm:"column:deleted"`
|
||
|
|
|
||
|
|
User User `gorm:"foreignKey:UserID"`
|
||
|
|
}
|