package domain

import (
	"time"
)

type RawMessage interface{}

type Market struct {
	EventID        string
	FI             string
	MarketCategory string
	MarketType     string
	MarketName     string
	MarketID       string
	UpdatedAt      time.Time
	Odds           []map[string]interface{}
	Name           string
	Handicap       string
	OddsVal        float64
	Source         string
}

type Odd struct {
	EventID        string       `json:"event_id"`
	Fi             string       `json:"fi"`
	MarketType     string       `json:"market_type"`
	MarketName     string       `json:"market_name"`
	MarketCategory string       `json:"market_category"`
	MarketID       string       `json:"market_id"`
	Name           string       `json:"name"`
	Handicap       string       `json:"handicap"`
	OddsValue      float64      `json:"odds_value"`
	Section        string       `json:"section"`
	Category       string       `json:"category"`
	RawOdds        []RawMessage `json:"raw_odds"`
	FetchedAt      time.Time    `json:"fetched_at"`
	Source         string       `json:"source"`
	IsActive       bool         `json:"is_active"`
}
type RawOddsByMarketID struct {
	ID         int64        `json:"id"`
	MarketName string       `json:"market_name"`
	Handicap   string       `json:"handicap"`
	RawOdds    []RawMessage `json:"raw_odds"`
	FetchedAt  time.Time    `json:"fetched_at"`
}


