package models

import "time"

type StoreStatistics struct {
	ID            uint      `gorm:"primaryKey;column:id" json:"id"`
	TotalOrders   int       `gorm:"column:total_orders;default:0" json:"totalOrders"`
	Rating        float64   `gorm:"column:rating;type:decimal(3,2);default:0.00" json:"rating"`
	TotalExperts  int       `gorm:"column:total_experts;default:0" json:"totalExperts"`
	InSession     int       `gorm:"column:in_session;default:0" json:"inSession"`
	IsActive      bool      `gorm:"column:isActive;default:true" json:"isActive"`
	CreatedAt     time.Time `gorm:"column:created_at;autoCreateTime" json:"createdAt"`
	UpdatedAt     time.Time `gorm:"column:updated_at;autoUpdateTime" json:"updatedAt"`
}

func (StoreStatistics) TableName() string {
	return "store_statistics"
}