users

package
v0.0.0-...-1985c56 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 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 Bank

type Bank struct {
	gorm.Model

	Terminal []Terminal
	Merchant []Merchant

	Client Client
}

type Client

type Client struct {
	gorm.Model

	Terminal []Terminal

	BankID     uint
	MerchantID uint
}

type Merchant

type Merchant struct {
	gorm.Model

	MobileNumber string
	Terminal     Terminal

	ClientID uint
	BankID   uint
}

type Terminal

type Terminal struct {
	gorm.Model
	Name           string
	TerminalNumber string `gorm:"unqiue_index"`

	BankID     uint
	MerchantID uint
	ClientID   uint
}

Jump to

Keyboard shortcuts

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