package response

type ActionSignoffAttributes struct {
	HelicopterID string `json:"helicopter_id" example:"019d6771-5fb5-7337-837f-bc5ed85181a1"`
	FlightID     string `json:"flight_id,omitempty" example:"019d6774-98e8-7fba-9ef4-3795c0da8a13"`
	// Signed — true once checked; gates the maintenance release form.
	Signed bool `json:"signed" example:"false"`
	// SignedAt / SignedBy — when/who signed; empty until signed.
	SignedAt *string `json:"signed_at,omitempty" example:"2026-06-16T03:04:05Z"`
	SignedBy string  `json:"signed_by,omitempty" example:"019d61db-53c6-7280-87ec-e65f205c6d3b"`
	// SignedByName / SignedByShort — resolved display name + 3-letter short of the signer.
	SignedByName  *string `json:"signed_by_name,omitempty" example:"John Doe"`
	SignedByShort *string `json:"signed_by_short,omitempty" example:"JDO"`
	CreatedAt     string  `json:"created_at,omitempty" example:"2026-06-16T03:04:05Z"`
	UpdatedAt    string  `json:"updated_at,omitempty" example:"2026-06-16T03:04:05Z"`
}

type ActionSignoffResource struct {
	Type       string                  `json:"type" example:"action_signoff"`
	ID         string                  `json:"id,omitempty" example:"019d6771-5fb5-7337-837f-bc5ed85181a1"`
	Attributes ActionSignoffAttributes `json:"attributes"`
}

type ActionSignoffResponse struct {
	Data ActionSignoffResource `json:"data"`
}
