package models

type SubCategory struct {
	ID          uint   `gorm:"primaryKey;column:id" json:"id"`
	ParentID    uint   `gorm:"column:parent_id" json:"parent_id"`
	Name        string `gorm:"column:category_name" json:"category_name"`
	Image       string `gorm:"column:category_image" json:"category_image"`
	Description string `gorm:"column:description" json:"description"`
	IsActive    bool   `gorm:"column:isActive" json:"isActive"`
	IsDelete    bool   `gorm:"column:isDelete" json:"isDelete"`
}

func (SubCategory) TableName() string {
	return "sub_category"
}
