import type { Question } from '../questions/types' import type { Ticket } from '../tickets/types' export type Answer = { id: string text: string reason: string | null aiGenerated: boolean aiText: string | null questionId: string ticketId: string createdAt: string updatedAt: string deletedAt: string | null // relationships question?: Question ticket?: Ticket } export type AnswerRelationships = 'question' | 'ticket' export type CreateAnswerPayload = { text: string questionId: string ticketId: string reason?: string } export type UpdateAnswerPayload = { text?: string reason?: string }