Spaces:
Sleeping
Sleeping
File size: 3,428 Bytes
049b896 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | export interface User {
id: string;
username: string;
email: string;
avatar: string;
role: 'user' | 'admin';
gameID?: string;
gameName?: string;
teamId?: string;
points: number;
joinedAt: string;
achievements: Achievement[];
registeredTournaments: string[]; // Tournament IDs
notifications: AppNotification[];
favoriteTeams?: string[]; // Preserved favorite team IDs on Firestore
}
export interface Achievement {
id: string;
title: string;
description: string;
unlockedAt?: string;
icon: string;
}
export interface AppNotification {
id: string;
title: string;
message: string;
time: string;
read: boolean;
type: 'info' | 'success' | 'alert' | 'tournament';
}
export interface Team {
id: string;
name: string;
logo: string;
tag?: string;
rank?: number;
winRate?: number;
matchesPlayed?: number;
matchesWon?: number;
draws?: number;
losses?: number;
goals?: string;
points: number;
gameType?: string;
members?: TeamMember[];
}
export interface TeamMember {
id: string;
username: string;
role: 'Leader' | 'Sniper' | 'Flex' | 'Support' | 'Captain' | 'Coach';
avatar: string;
country: string;
}
export interface Game {
id: string;
title: string;
genre: string;
coverImage: string;
bannerImage: string;
activeTournamentsCount: number;
totalPlayersCount: string;
platforms: string[];
rankings: { rank: number; teamName: string; winRate: string; points: number }[];
}
export interface Tournament {
id: string;
title: string;
gameId: string;
gameTitle: string;
coverImage: string;
category: 'solo' | 'team';
prizePool: string;
prizeDistribution?: { place: string; prize: string }[];
slotsTotal: number;
slotsFilled: number;
startDate: string;
startTime: string;
status: 'upcoming' | 'ongoing' | 'completed' | 'registration_closed';
entryFee: string;
rules: string[];
requirements: string[];
}
export interface LiveMatch {
id: string;
tournamentId: string;
tournamentTitle: string;
gameId: string;
teamA: { name: string; logo: string; score?: number };
teamB: { name: string; logo: string; score?: number };
status: 'live' | 'upcoming' | 'finished';
time: string;
streamUrl?: string;
round?: string;
}
export interface StandingsRecord {
rank: number;
teamName: string;
logo: string;
played: number;
wins: number;
losses: number;
points: number;
}
export interface TournamentBracketNode {
id: string;
round: number;
roundName: string;
matchId?: string;
teamA: { id?: string; name: string; logo: string; score?: number; winner?: boolean };
teamB: { id?: string; name: string; logo: string; score?: number; winner?: boolean };
status: 'upcoming' | 'live' | 'finished';
nextMatchId?: string;
}
export interface ChatMessage {
id: string;
userId: string;
username: string;
userAvatar: string;
message: string;
timestamp: string;
role: 'user' | 'admin' | 'moderator';
channel: 'global' | 'team' | 'match';
}
export interface NewsArticle {
id: string;
title: string;
summary: string;
content: string;
image: string;
category: string;
publishedAt: string;
views: number;
}
export interface CyberMatch {
id: string;
gameName: string;
dateTime: string;
teamA: { name: string; logo: string; votes: number };
teamB: { name: string; logo: string; votes: number };
status: 'upcoming' | 'live' | 'finished';
}
|