Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Roundup ¶
type Roundup struct { ID uint32 `gorm:"primary_key;auto_increment" json:"id"` Amount int `gorm:"not null" json:"amount"` RoundupBatchID uint32 `sql:"type:int REFERENCES batches(id)" json:"roundup_batch_id"` RoundupUserID uint32 `sql:"type:int REFERENCES users(id)" json:"roundup_user_id"` }
func (*Roundup) FindAllRoundups ¶
type Transaction ¶
type Transaction struct { ID uint64 `gorm:"primary_key;auto_increment" json:"id"` Amount int `gorm:"not null" json:"amount"` TransactionBatchID uint32 `sql:"type:int REFERENCES batches(id)" json:"transaction_batch_id"` }
func (*Transaction) FindAllTransactions ¶
func (t *Transaction) FindAllTransactions(db *gorm.DB) (*[]Transaction, error)
Click to show internal directories.
Click to hide internal directories.