You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
832 B

package order
import "github.com/golangkit/formatime"
type Invoice struct {
ID uint `gorm:"column:id;primary_key" json:"ID"`
OrderID uint `gorm:"column:order_id" json:"-"`
Type uint `gorm:"column:type" json:"type"`
Title string `gorm:"column:title" json:"title"`
TaxNo string `gorm:"column:tax_no" json:"taxNo"`
ExpressCompName string `gorm:"column:express_comp_name" json:"expressCompName, omitempty"`
ExpressNo string `gorm:"column:express_no" json:"expressNo, omitempty"`
CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt"`
}
// TableName sets the insert table name for this struct type
func (r *Invoice) TableName() string {
return "recook_order_invoice"
}