export type EventType = 'match' | 'training' | 'meeting' | 'other';

export interface EventAttachment {
  id?: number;
  event_id?: number;
  name?: string;
  url: string;
  mime_type?: string;
  size?: number;
  created_at?: string;
  updated_at?: string;
}

export interface Event {
  id: number;
  title: string;
  description: string;
  start_time: string; // ISO string
  end_time: string | null; // ISO string
  location: string;
  type: EventType;
  is_public: boolean;
  created_by_id: number;
  created_at: string;
  updated_at: string;
  image_url?: string;
  file_url?: string;
  attachments?: EventAttachment[];
  category_name?: string;
  youtube_url?: string; // YouTube video URL or embed code
  latitude?: number | null;
  longitude?: number | null;
}
