Discover Packages
github.com/ntferr/icash
entities
package
Version:
v0.0.0-...-bf77178
Opens a new window with list of versions in this module.
Published: Sep 2, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Bank struct {
ID string `json:"id" gorm:"primaryKey"`
Name string `json:"name"`
Code string `json:"code"`
Cards []Card `json:"cards" gorm:"foreignKey:BankID"`
}
type Card struct {
ID string `json:"id" gorm:"primaryKey"`
BankID string `json:"bank_id"`
Number string `json:"number"`
ExpireAt string `json:"expire_at"`
Debts []Debt `json:"debts" gorm:"foreignKey:CardID"`
}
type Debt struct {
ID string `json:"id" gorm:"primaryKey"`
CardID string `json:"card_id"`
TicketID string `json:"ticket_id"`
Name string `json:"name"`
Description string `json:"description"`
Ticket Ticket `json:"ticket" gorm:"foreignKey:DebtID"`
Installments []Installment `json:"installments" gorm:"foreignKey:DebtID"`
}
type Installment struct {
ID string `json:"id" gorm:"primaryKey"`
DebtID string `json:"debt_id"`
DueDate string `json:"due_date" gorm:"dueDate"`
Paid bool `json:"paid" gorm:"paid"`
Number int `json:"number" gorm:"number"`
}
type Ticket struct {
ID string `json:"id" gorm:"primaryKey"`
DebtID string `json:"debt_id"`
CodeBars string `json:"code_bars"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.