Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderM ¶
type OrderM struct {
ID int64 `gorm:"column:id;primary_key"` //
OrderID string `gorm:"column:order_id"` //
Customer string `gorm:"column:customer"` //
Product string `gorm:"column:product"` //
Quantity int64 `gorm:"column:quantity"` //
CreatedAt time.Time `gorm:"column:created_at"` //
UpdatedAt time.Time `gorm:"column:updated_at"` //
}
func (*OrderM) AfterCreate ¶
AfterCreate runs after creating a OrderM database record and updates the OrderID field.
Click to show internal directories.
Click to hide internal directories.