// TypeScript interfaces for the new photo submission relational tables

export interface PhotoSubmission {
  id: string;
  submission_id: string;
  entity_type: 'park' | 'ride' | 'manufacturer' | 'operator' | 'designer' | 'property_owner';
  entity_id: string;
  parent_id?: string;
  title?: string;
  created_at: string;
  updated_at: string;
}

export interface PhotoSubmissionItem {
  id: string;
  photo_submission_id: string;
  cloudflare_image_id: string;
  cloudflare_image_url: string;
  caption?: string | null;
  title?: string | null;
  filename?: string | null;
  order_index: number;
  file_size?: number | null;
  mime_type?: string | null;
  date_taken?: string | null;
  date_taken_precision?: string | null;
  created_at: string;
}

export interface ReviewPhoto {
  id: string;
  review_id: string;
  cloudflare_image_id: string;
  cloudflare_image_url: string;
  caption?: string;
  order_index: number;
  created_at: string;
}

export interface PhotoSubmissionWithItems extends PhotoSubmission {
  items: PhotoSubmissionItem[];
  submission?: {
    user_id: string;
    status: string;
  };
}
