Coverage for models/__init__.py: 100.00%
12 statements
« prev ^ index » next coverage.py v7.10.6, created at 2026-11-30 15:03 +0000
« prev ^ index » next coverage.py v7.10.6, created at 2026-11-30 15:03 +0000
1"""
2Pydantic models for data validation and serialization.
4All models are organized by domain for better maintainability.
5"""
7# Auth models
8from .auth import (
9 AdminPlayerTeamAssignment,
10 AdminPlayerTeamEnd,
11 AdminPlayerUpdate,
12 ForgotPasswordRequest,
13 PlayerCustomization,
14 PlayerHistoryCreate,
15 PlayerHistoryUpdate,
16 ProfilePhotoSlot,
17 RefreshTokenRequest,
18 ResetPasswordRequest,
19 RoleUpdate,
20 UserLogin,
21 UserProfile,
22 UserProfileUpdate,
23 UserSignup,
24)
26# Club models
27from .clubs import Club, ClubData, ClubWithTeams, TeamData, load_clubs_from_json
29# League/Division models
30from .leagues import (
31 DivisionCreate,
32 DivisionUpdate,
33 League,
34 LeagueCreate,
35 LeagueUpdate,
36)
38# Lineup models
39from .lineup import (
40 LineupPositionEntry,
41 LineupPositionResponse,
42 LineupResponse,
43 LineupSave,
44)
46# Live match models
47from .live_match import (
48 GoalEvent,
49 GoalEventUpdate,
50 LiveCardEvent,
51 LiveMatchClock,
52 LiveMatchState,
53 LiveMatchSummary,
54 LivePositionChangeEvent,
55 LiveSubstitutionEvent,
56 MatchEventResponse,
57 MessageEvent,
58)
60# Match models
61from .matches import EnhancedMatch, MatchPatch, MatchSubmissionData
63# Playoff models
64from .playoffs import (
65 AdvanceWinnerRequest,
66 ForfeitMatchRequest,
67 GenerateBracketRequest,
68 PlayoffBracketSlot,
69)
71# Post-match stats models
72from .post_match import (
73 BatchPlayerStatsUpdate,
74 PlayerStatEntry,
75 PostMatchCard,
76 PostMatchGoal,
77 PostMatchSubstitution,
78)
80# Roster models
81from .roster import (
82 BulkAgeGroupUpdate,
83 BulkRenumberRequest,
84 BulkRosterCreate,
85 BulkRosterPlayer,
86 JerseyNumberUpdate,
87 RenumberEntry,
88 RosterPlayerCreate,
89 RosterPlayerResponse,
90 RosterPlayerUpdate,
91)
93# Season/AgeGroup models
94from .seasons import AgeGroupCreate, AgeGroupUpdate, SeasonCreate, SeasonUpdate
96# Team models
97from .teams import DivisionGuestCreate, Team, TeamMappingCreate, TeamMatchTypeMapping, TeamUpdate
99# Note: MatchData has Pydantic compatibility issues, import directly if needed
100# from .match_data import MatchData
102__all__ = [
103 "AdminPlayerTeamAssignment",
104 "AdminPlayerTeamEnd",
105 "AdminPlayerUpdate",
106 "AdvanceWinnerRequest",
107 "AgeGroupCreate",
108 "AgeGroupUpdate",
109 "BatchPlayerStatsUpdate",
110 "BulkAgeGroupUpdate",
111 "BulkRenumberRequest",
112 "BulkRosterCreate",
113 "BulkRosterPlayer",
114 "Club",
115 "ClubData",
116 "ClubWithTeams",
117 "DivisionCreate",
118 "DivisionGuestCreate",
119 "DivisionUpdate",
120 "EnhancedMatch",
121 "ForfeitMatchRequest",
122 "ForgotPasswordRequest",
123 "GenerateBracketRequest",
124 "GoalEvent",
125 "GoalEventUpdate",
126 "JerseyNumberUpdate",
127 "League",
128 "LeagueCreate",
129 "LeagueUpdate",
130 "LineupPositionEntry",
131 "LineupPositionResponse",
132 "LineupResponse",
133 "LineupSave",
134 "LiveCardEvent",
135 "LiveMatchClock",
136 "LiveMatchState",
137 "LiveMatchSummary",
138 "LivePositionChangeEvent",
139 "LiveSubstitutionEvent",
140 "MatchEventResponse",
141 "MatchPatch",
142 "MatchSubmissionData",
143 "MessageEvent",
144 "PlayerCustomization",
145 "PlayerHistoryCreate",
146 "PlayerHistoryUpdate",
147 "PlayerStatEntry",
148 "PlayoffBracketSlot",
149 "PostMatchCard",
150 "PostMatchGoal",
151 "PostMatchSubstitution",
152 "ProfilePhotoSlot",
153 "RefreshTokenRequest",
154 "RenumberEntry",
155 "ResetPasswordRequest",
156 "RoleUpdate",
157 "RosterPlayerCreate",
158 "RosterPlayerResponse",
159 "RosterPlayerUpdate",
160 "SeasonCreate",
161 "SeasonUpdate",
162 "Team",
163 "TeamData",
164 "TeamMappingCreate",
165 "TeamMatchTypeMapping",
166 "TeamUpdate",
167 "UserLogin",
168 "UserProfile",
169 "UserProfileUpdate",
170 "UserSignup",
171 "load_clubs_from_json",
172]