Documentation ¶
Index ¶
- Variables
- func ConnectToDatabase()
- func ConnectToDestinationDatabase()
- func ConnectToSourceDatabase()
- func ExportData(c *gin.Context)
- func Migration(c *gin.Context)
- func TransferData(c *gin.Context)
- type Credits
- type Customers
- type OtherTransaction
- type Payments
- type Profiles
- type Tokens
- type Users
- type Wallets
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
View Source
var DestinationDB *gorm.DB
View Source
var SourceDB *gorm.DB
Functions ¶
func ConnectToDatabase ¶
func ConnectToDatabase()
func ConnectToDestinationDatabase ¶
func ConnectToDestinationDatabase()
func ConnectToSourceDatabase ¶
func ConnectToSourceDatabase()
func ExportData ¶
func TransferData ¶
Types ¶
type Credits ¶
type Credits struct { ID string `json:"id" gorm:"primary_key"` Product string `json:"product"` CapitalPrice int `json:"capital_price"` SellingPrice int `json:"selling_price"` Cicilan int `json:"cicilan"` Periode string `json:"periode"` PayEvery string `json:"pay_every"` // foreign key IDCustomer string `json:"id_customer"` Customer Customers `json:"customer" gorm:"references:IDCustomer"` IDUser string `json:"id_user"` User Users `json:"user" gorm:"references:IDUser"` // status CreatedAt time.Time `json:"created_at"` IsDeleted bool `json:"is_deleted"` }
type Customers ¶
type Customers struct { ID string `json:"id" gorm:"primary_key"` Name string `json:"name"` Phone string `json:"phone"` Address string `json:"address"` RemainingCredit int `json:"remaining_credit"` Note string `json:"note"` // foreign key IDUser string `json:"id_user"` User Users `json:"user" gorm:"references:IDUser"` // status CreatedAt time.Time `json:"created_at"` IsDeleted bool `json:"is_deleted"` }
type OtherTransaction ¶
Click to show internal directories.
Click to hide internal directories.