package models import "time" type ScheduleEntry struct { ID int64 `json:"id"` // TeamID is whose rota this shift belongs to; TeamName rides along so the // combined "who is on call" view can label each entry without a second // request. TeamID int64 `json:"team_id"` TeamName string `json:"team_name,omitempty"` UserID int64 `json:"user_id"` Username string `json:"username"` Date string `json:"date"` // YYYY-MM-DD CreatedAt time.Time `json:"created_at"` }