Documentation
¶
Index ¶
- type Account
- func (a *Account) FindByGarageNumber(n string) (*Account, error)
- func (a *Account) FindByID(id int) (*Account, error)
- func (a *Account) GetAll(orderColumn, orderDirection string) ([]Account, error)
- func (a *Account) Insert() error
- func (a *Account) LastPayedYear() string
- func (a *Account) Search(search string) ([]Account, error)
- type Payment
- type Rate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { gorm.Model GarageNumber string `validate:"required" gorm:"index:idx_garage_number,unique"` FullName string `validate:"required" gorm:"not null"` PhoneNumber string Address string Debt float32 ElectricityNumber int Payments []Payment `gorm:"foreignKey:AccountID"` }
func (*Account) FindByGarageNumber ¶
func (*Account) LastPayedYear ¶
type Payment ¶
Click to show internal directories.
Click to hide internal directories.