export interface Attachment {
  id: string
  fileName: string
  fileType: string
  fileSize?: number
  url?: string
  generated?: boolean
}

export interface InquiryMessage {
  id: string
  inquiryId: string
  senderType: 'tenant' | 'supply_user' | 'system' | 'ai'
  senderName: string
  subject?: string
  body: string
  attachments: Attachment[]
  createdAt: string
}

export type InquiryStatus = 'new' | 'in_progress' | 'answered' | 'archived'

export interface Inquiry {
  id: string
  organizationId: string
  propertyId: string
  needId?: string
  tenantName: string
  tenantCompany?: string
  tenantEmail?: string
  subject: string
  message: string
  status?: InquiryStatus
  unreadCount: number
  isRead: boolean
  lastReadAt?: string
  matchScore?: number
  createdAt: string
  updatedAt: string
  thread: InquiryMessage[]
}
