12 lines
527 B
Go
12 lines
527 B
Go
package dao
|
|
|
|
type UserCredential struct {
|
|
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
UserId int64 `gorm:"column:user_id" json:"user_id"`
|
|
CredentialType string `gorm:"column:credential_type" json:"credential_type"`
|
|
Identifier string `gorm:"column:identifier" json:"identifier"`
|
|
Secret string `gorm:"column:secret" json:"secret"`
|
|
ExtraJson string `gorm:"column:extra_json;type:json" json:"extra_json"`
|
|
Status uint8 `gorm:"column:status" json:"status"`
|
|
}
|