regionals enrollments
This commit is contained in:
@@ -3,6 +3,7 @@ import { TeamInfo, Team } from "../teams/types";
|
||||
import { TournamentInfo } from "../tournaments/types";
|
||||
|
||||
export type MatchStatus = "tbd" | "ready" | "started" | "ended";
|
||||
export type MatchType = "group_stage" | "knockout" | "winners" | "losers" | "bracket";
|
||||
|
||||
export interface Match {
|
||||
id: string;
|
||||
@@ -29,6 +30,8 @@ export interface Match {
|
||||
updated: string;
|
||||
home_seed?: number;
|
||||
away_seed?: number;
|
||||
match_type?: MatchType;
|
||||
group?: string;
|
||||
}
|
||||
|
||||
export const matchInputSchema = z.object({
|
||||
@@ -53,6 +56,8 @@ export const matchInputSchema = z.object({
|
||||
away: z.string().min(1).optional(),
|
||||
home_seed: z.number().int().min(1).optional(),
|
||||
away_seed: z.number().int().min(1).optional(),
|
||||
match_type: z.enum(["group_stage", "knockout", "winners", "losers", "bracket"]).optional(),
|
||||
group: z.string().optional(),
|
||||
});
|
||||
|
||||
export type MatchInput = z.infer<typeof matchInputSchema>;
|
||||
|
||||
Reference in New Issue
Block a user