Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { ID uuid.UUID `gorm:"primaryKey" json:"id"` ProductName string `gorm:"not null" json:"productName"` Status ItemStatus `gorm:"type:item_status;not null" json:"status"` Price float64 `gorm:"not null" json:"price"` Amount int `gorm:"not null" json:"amount"` At time.Time `gorm:"index;not null" json:"at"` DeletedAt sql.NullTime `gorm:"index" json:"-"` }
type ItemStatus ¶
type ItemStatus string
const ( BUY ItemStatus = "BUY" SELL ItemStatus = "SELL" )
func (*ItemStatus) Scan ¶
func (s *ItemStatus) Scan(value interface{}) error
Click to show internal directories.
Click to hide internal directories.