Documentation ¶
Index ¶
- type Account
- func (a *Account) Create(db *gorm.DB) *gorm.DB
- func (a *Account) Delete(db *gorm.DB) *gorm.DB
- func (a *Account) DeleteHook(db *gorm.DB) error
- func (a *Account) Get(db *gorm.DB) *gorm.DB
- func (a *Account) GetByAddress(db *gorm.DB) *gorm.DB
- func (a *Account) IncrementTransactionCount(db *gorm.DB) error
- func (a *Account) SetupHook(tx *gorm.DB) (err error)
- type Base
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Base Email string `json:"email" gorm:"unique;not null"` TransactionCount int `json:"transaction_count"` Address string `json:"address" gorm:"unique;not null"` HookId string `json:"hook_id"` CurrencyCode string `json:"currency_code"` }
func (*Account) IncrementTransactionCount ¶
Click to show internal directories.
Click to hide internal directories.