19 lines
576 B
Go
19 lines
576 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Panier struct {
|
|
ID int `json:"id"`
|
|
Username string `json:"username"`
|
|
ProductID int `json:"product_id"`
|
|
ProductName string `json:"product_name"`
|
|
Category string `json:"category"`
|
|
Description string `json:"description"`
|
|
Quantity float64 `json:"quantity"`
|
|
Price float64 `json:"price"`
|
|
IsReward bool `json:"is_reward"`
|
|
RewardPoolKey string `json:"reward_pool_key,omitempty"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
|
}
|