package models

import "time"

type ProductImage struct {
	ID           uint      `gorm:"primaryKey;column:id"`
	ProductID    uint      `gorm:"column:productId"`
	Image        string    `gorm:"column:image"`
	IsPrimary    bool      `gorm:"column:isPrimary"`
	DisplayOrder int       `gorm:"column:displayOrder"`
	IsActive     bool      `gorm:"column:isActive"`
	IsDelete     bool      `gorm:"column:isDelete"`
	CreatedAt    time.Time `gorm:"column:created_at"`
	UpdatedAt    time.Time `gorm:"column:updated_at"`
}

func (ProductImage) TableName() string {
	return "product_images"
}