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.

17 lines
258 B
Go

package model
import "time"
type Product struct {
ID int
Name string
Price float64
Description string
CreatedAt time.Time `json:"-"`
UpdatedAt time.Time `json:"-"`
}
func (Product) TableName() string {
return "products"
}