import { PlayerInfo } from '../players/types';

export interface BadgeInfo {
  id: string;
  name: string;
  key: string;
  description: string;
  type: "manual" | "match" | "tournament";
  progressive: boolean;
  order: number;
}

export interface Badge extends BadgeInfo {
  criteria: Record<string, any>;
  created: string;
  updated: string;
}

export interface BadgeProgress {
  id: string;
  badge: BadgeInfo;
  player: string;
  progress: number;
  earned: boolean;
  created: string;
  updated: string;
}

export interface EarnedBadge {
  id: string;
  badge: string;
  player: PlayerInfo;
  progress: number;
  earned: boolean;
  created: string;
  updated: string;
}
