Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Asset ¶ added in v1.1.9
type Asset struct { CreatedAt time.Time `gorm:"index:,"` ID uint `gorm:"primary_key; uniqueIndex"` Asset string `gorm:"type:varchar(128); uniqueIndex"` Decimals uint `gorm:"int(4)"` Name string `gorm:"type:varchar(128)"` Symbol string `gorm:"type:varchar(128)"` Type string `gorm:"type:varchar(12)"` Coin uint }
type Subscription ¶
type Subscription struct { ID uint `gorm:"primaryKey;"` CreatedAt time.Time Address string `gorm:"uniqueIndex:idx_address; type:varchar(256); not null;"` }
Subscription for address and asset associations
type SubscriptionsAssetAssociation ¶ added in v1.1.15
type SubscriptionsAssetAssociation struct { CreatedAt time.Time `gorm:"index;"` Subscription Subscription `gorm:"ForeignKey:SubscriptionId; not null"` SubscriptionId uint `gorm:"primary_key; autoIncrement:false; index"` Asset Asset `gorm:"ForeignKey:AssetId; not null"` AssetId uint `gorm:"primary_key; autoIncrement:false; index"` }
Click to show internal directories.
Click to hide internal directories.