Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlowId ¶
type FlowId struct {
FlowIdType FlowIdType `sql:"flow_id_type"`
WalletAddress string
FlowId string `gorm:"primary_key"`
RelatedRoleId string
}
TODO: Make relations for field `relatedRoleId`
type FlowIdType ¶
type FlowIdType string
const ( AUTH FlowIdType = "AUTH" ROLE FlowIdType = "ROLE" )
func (*FlowIdType) Scan ¶
func (fit *FlowIdType) Scan(value interface{}) error
type User ¶
type User struct {
Name string `json:"name,omitempty"`
WalletAddress string `gorm:"primary_key" json:"walletAddress"`
FlowIds []FlowId `gorm:"foreignkey:WalletAddress" json:"-"`
ProfilePictureUrl string `json:"profilePictureUrl,omitempty"`
Country string `json:"country,omitempty"`
Feedbacks []UserFeedback `gorm:"foreignkey:WalletAddress" json:"userFeedbacks"`
}
Click to show internal directories.
Click to hide internal directories.