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.
|
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Order struct {
|
|
ID uint
|
|
OrderNo string
|
|
UserID int
|
|
Amount float64
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
func (Order) TableName() string {
|
|
return "orders"
|
|
}
|