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

import "time"

type Report struct {
	UserID     int       `json:"user_id"`
	ReportID   int       `json:"report_id"`
	BarID      int       `json:"bar_id" db:"barId" validate:"required"`
	WaitTime   int       `json:"wait_time" db:"waitTime" validate:"required,min=0"`
	Busyness   int       `json:"busyness" db:"busyness" validate:"required,min=1,max=10"`
	Music      []string  `json:"music" db:"music" validate:"required,max=100"`
	ReportTime time.Time `json:"report_time"`
	Latitude   float64   `json:"latitude" validate:"required"`
	Longitude  float64   `json:"longitude" validate:"required"`
}

type AverageWaitTime struct {
	BarID    int     `json:"bar_id"`
	WaitTime float64 `json:"wait_time"`
}