db

package
v0.0.0-...-db8959b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loan

type Loan struct {
	Id        int64     `gorm:"primary_key;AUTO_INCREMENT" json:"id"`
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func (*Loan) TableName

func (t *Loan) TableName() string

type LoanBasicInfo

type LoanBasicInfo struct {
	Id           int64     `gorm:"primary_key;AUTO_INCREMENT" json:"id"`
	Name         string    `json:"name"`
	LoanId       int64     `json:"loan_id"`
	LoanType     int       `json:"loan_type"`
	Principal    float64   `json:"principal"`
	InterestRate float64   `json:"interest_rate"`
	Periods      int       `json:"periods"`
	StartDate    time.Time `json:"start_date"`
	CreatedAt    time.Time `json:"created_at"`
	UpdatedAt    time.Time `json:"updated_at"`
}

func (*LoanBasicInfo) TableName

func (t *LoanBasicInfo) TableName() string

type LoanType

type LoanType struct {
	Id    int64  `gorm:"primary_key;AUTO_INCREMENT" json:"id"`
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*LoanType) TableName

func (t *LoanType) TableName() string

type Repayment

type Repayment struct {
	Id              int64     `gorm:"primary_key;AUTO_INCREMENT" json:"id"`
	LoanBasicInfoId int64     `json:"loan_basic_info_id"`
	Period          int       `json:"period"`
	Amount          float64   `json:"amount"`
	RepaymentDate   time.Time `json:"repayment_date"`
	CreatedAt       time.Time `json:"created_at"`
	UpdatedAt       time.Time `json:"updated_at"`
}

func (*Repayment) TableName

func (t *Repayment) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL