Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ticket ¶
type Ticket struct { ID uint `json:"id"` Hash string `json:"hash"` TxHash string `json:"tx_hash"` Timestamp time.Time `json:"timestamp"` Seller *User `gorm:"foreignkey:SellerID; PRELOAD:true"` SellerID string `json:"seller"` BuyerID string `json:"buyer"` TicketProducts []*TicketProduct `gorm:"ForeignKey:TicketID" json:"products"` }
type TicketProduct ¶
type TicketProduct struct { TicketID uint `gorm:"primary_key" json:"ticket_hash"` Product *Product ProductID uint `gorm:"primary_key; auto_increment:false" json:"product_id"` Amount uint `json:"amount"` }
func (*TicketProduct) TableName ¶
func (*TicketProduct) TableName() string
Click to show internal directories.
Click to hide internal directories.