forked from ebhomengo/niki
32 lines
443 B
Go
32 lines
443 B
Go
package product
|
|
|
|
import (
|
|
"database/sql"
|
|
"time"
|
|
)
|
|
|
|
type Product struct {
|
|
ID uint
|
|
Name string
|
|
Slug string
|
|
Description string
|
|
Price float64
|
|
Stock int
|
|
IsActive bool
|
|
Features string
|
|
CreatedAt time.Time
|
|
DeletedAt sql.NullTime
|
|
}
|
|
|
|
type ProductImage struct {
|
|
ID uint
|
|
ProductID uint
|
|
ImagePath string
|
|
IsPrimary bool
|
|
}
|
|
|
|
type CategoryProduct struct {
|
|
CategoryID uint
|
|
ProductID uint
|
|
}
|