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

19 lines
221 B
Go

11 months ago
package model
import (
"time"
)
type Order struct {
8 months ago
ID uint
OrderNo string
UserID int
Amount float64
CreatedAt time.Time
UpdatedAt time.Time
11 months ago
}
func (Order) TableName() string {
8 months ago
return "orders"
11 months ago
}