Files

35 lines
1.3 KiB
Plaintext

/**
* Data mapping for tournaments.
* This object serves as a reference for developers to understand the structure of tournament data.
*/
const tournaments = {
sanctioningIDAsIndex: {
active: Boolean, // Whether the tournament is active
tournamentName: String, // Name of the tournament
sanctioningId: String, // Unique ID for sanctioning
challongeLink: String, // Link to the tournament on Challonge
startDate: String, // Start date of the tournament
endDate: String, // End date of the tournament
lead: String, // Lead organizer of the tournament
headJudge: String, // Head judge of the tournament
assistantHeadJudge: String // Assistant head judge of the tournament
}
};
const disputes = {
GUID_AND_SANCTIONINGID_AS_INDEX: {
sanctioningId: STRING | tournaments.sanctioningIDAsIndex.sanctioningId, // Unique ID for sanctioning
challongeLink: STRING | tournaments.sanctioningIDAsIndex.challongeLink, // Link to the tournament on Challonge
playerIds: [STRING], // Array of player IDs involved in the dispute
judges: [STRING], // Array of judge IDs involved in the dispute
description: STRING, // Description/detailed account of the dispute
verdict: STRING, // Verdict of the dispute
recordingLink: STRING // Link to the recording of the dispute
}
};
const dataStore = {
tournaments,
disputes
};