busybar / internal / models / analytics.models.go
analytics.models.go
Raw
package models

type BusiestDay struct {
	BarID       int    `json:"bar_id"`
	BarName     string `json:"bar_name"`
	DayOfWeek   string `json:"day_of_week"`
	ReportCount int    `json:"report_count"`
}

type BusiestBar struct {
	BarID           int     `json:"bar_id"`
	BarName         string  `json:"bar_name"`
	AverageBusyness float64 `json:"average_busyness"`
	ReportCount     int     `json:"report_count"`
}

type TrendingBar struct {
	BarID           int     `json:"bar_id"`
	BarName         string  `json:"bar_name"`
	ReportCount     int     `json:"report_count"`
	AverageBusyness float64 `json:"average_busyness"`
	AverageWaitTime float64 `json:"average_wait_time"`
}

type WaitTimeBar struct {
	BarID           int     `json:"bar_id"`
	BarName         string  `json:"bar_name"`
	AverageWaitTime float64 `json:"average_wait_time"`
	ReportCount     int     `json:"report_count"`
	AverageBusyness float64 `json:"average_busyness"`
}

type Bar struct {
	BarID          int     `json:"bar_id"`
	BarName        string  `json:"bar_name"`
	BarDescription string  `json:"bar_description"`
	BarLatitude    float64 `json:"bar_latitude"`
	BarLongitude   float64 `json:"bar_longitude"`
	IsActive       bool    `json:"is_active"`
	Distance       float64 `json:"distance"`
}

type BarRequest struct {
	UserLatitude  float64 `json:"user_latitude"`
	UserLongitude float64 `json:"user_longitude"`
}