entity

package
v0.0.0-...-ff4b850 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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 Order

type Order struct {
	Id             int64           `gorm:"column:id;primaryKey"`
	ShipmentNumber int64           `gorm:"column:shipment_number"`
	CargoId        int             `gorm:"column:cargo_id"`
	IsShipped      bool            `gorm:"column:is_shipped"`
	CreatedAt      time.Time       `gorm:"column:created_at"`
	OrderLineItems []OrderLineItem `gorm:"referenceKey:OrderId"`
}

type OrderLineItem

type OrderLineItem struct {
	Id        int64 `gorm:"column:id;primaryKey"`
	ProductId int64 `gorm:"column:product_id"`
	SellerId  int64 `gorm:"column:seller_id"`
	OrderId   int64 `gorm:"column:order_id"`
}

Jump to

Keyboard shortcuts

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