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

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