38 lines
543 B
Go
38 lines
543 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Product struct {
|
|
ID int
|
|
Name string
|
|
Description string
|
|
Details string
|
|
Price float64
|
|
ImageURL string
|
|
Category string
|
|
IsActive bool
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
Images []ProductImage
|
|
}
|
|
|
|
type ProductImage struct {
|
|
ID int
|
|
ProductID int
|
|
FilePath string
|
|
IsPrimary bool
|
|
SortOrder int
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type Category struct {
|
|
Name string
|
|
Slug string
|
|
Count int
|
|
}
|
|
|
|
type SiteStats struct {
|
|
TotalVisits int64
|
|
TodayVisits int
|
|
}
|