package main import ( "time" ) type User struct { ID int `json:"id"` Username string `json:"username"` Password string `json:"-"` IsAdmin bool `json:"is_admin"` } type Schedule struct { ID int `json:"id"` DayOfWeek int `json:"day_of_week"` // 0=Monday, 4=Friday StartTime string `json:"start_time"` EndTime string `json:"end_time"` Type string `json:"type"` // "lesson" or "break" Title string `json:"title"` } type TimeEntry struct { ID int `json:"id"` UserID int `json:"user_id"` ScheduleID int `json:"schedule_id"` Date string `json:"date"` Type string `json:"type"` // "lesson" or "break" CreatedAt time.Time `json:"created_at"` } type LoginRequest struct { Username string `json:"username"` Password string `json:"password"` } type LoginResponse struct { Token string `json:"token"` Username string `json:"username"` IsAdmin bool `json:"is_admin"` }