20 lines
489 B
Go
20 lines
489 B
Go
package model
|
|
|
|
// OrderLog 订单日志信息模型
|
|
type OrderLog struct {
|
|
Model
|
|
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
|
OrderID uint64 `gorm:"column:uid;type:int(11);default:0;comment:订单ID" json:"-"`
|
|
Remark string `gorm:"column:remark;type:varchar(255);default:'';comment:备注" json:"remark"`
|
|
ModelDeleted
|
|
ModelAt
|
|
}
|
|
|
|
func (m *OrderLog) TableName() string {
|
|
return "order_log"
|
|
}
|
|
|
|
func NewOrderLog() *OrderLog {
|
|
return &OrderLog{}
|
|
}
|