model

package
v0.0.0-...-8647d6b Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	ID        string    `gorm:"column:card_id;type:uuid"`
	Brand     string    `gorm:"column:brand;type:text"`
	CardBrand CardBrand `gorm:"foreignKey:Brand;references:Brand"`
}

Card is the model of cards

type CardBrand

type CardBrand struct {
	Brand string `gorm:"type:text;primaryKey"`
}

CardBrand is the model of card_brands

type Parameter

type Parameter struct {
	ID    int
	Funds int
	Btc   int
}

Parameter is model

type Payment

type Payment struct {
	OrderID string `gorm:"type:uuid;primaryKey"`
	CardID  string `gorm:"type:uuid"`
	Card    Card
}

Payment is the model of payments

Jump to

Keyboard shortcuts

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