package recognition import ( "time" "github.com/food-ai/backend/internal/adapters/ai" ) // Job status constants. const ( JobStatusPending = "pending" JobStatusProcessing = "processing" JobStatusDone = "done" JobStatusFailed = "failed" ) // Kafka topic names. const ( TopicPaid = "ai.recognize.paid" TopicFree = "ai.recognize.free" ) // Job represents an async dish recognition task stored in recognition_jobs. type Job struct { ID string UserID string UserPlan string ImageBase64 string MimeType string Lang string Status string Result *ai.DishResult Error *string CreatedAt time.Time StartedAt *time.Time CompletedAt *time.Time }