export type DisputeStatus = 'open' | 'evidence' | 'mediation' | 'resolved' | 'cancelled';

export interface Dispute {
  id: number;
  deal_id: number;
  opened_by_user_id: number;
  status: DisputeStatus;
  reason_code: string;
  summary: string;
  requested_outcome: string;
  final_decision?: string | null;
  final_reason?: string | null;
  decided_by_user_id?: number | null;
  decided_at?: Date | null;
  created_at: Date;
  updated_at: Date;
}

export interface DisputeEvent {
  id: number;
  dispute_id: number;
  event_type: string;
  actor_user_id: number;
  payload_json: string;
  created_at: Date;
}