package response

// FleetHistoryEntry is one event in a helicopter's unified timeline (complaint /
// MEL / NSR / action / MCF / EASA / AOG events plus maintenance servicing).
type FleetHistoryEntry struct {
	At         string `json:"at" example:"2026-06-17T10:15:00Z"`
	EntityType string `json:"entity_type" example:"easa_release"`
	EntityID   string `json:"entity_id,omitempty" example:"019d6771-5fb5-7337-837f-bc5ed85181a1"`
	Action     string `json:"action" example:"easa_signed"`
	Message    string `json:"message" example:"Release to Service (EASA signed)"`
	Actor      string `json:"actor,omitempty" example:"019e91e6-2908-7f37-93e6-015ed1b7587d"`
	ActorName  string `json:"actor_name,omitempty" example:"John Doe"`
}

type FleetHistoryListResponse struct {
	Data []FleetHistoryEntry `json:"data"`
	Meta struct {
		PageNumber int   `json:"page_number" example:"1"`
		PageSize   int   `json:"page_size" example:"20"`
		Total      int64 `json:"total" example:"1"`
	} `json:"meta"`
}
