-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updation of schema and DTOs for football Events , Format and MatchState #33
base: dev
Are you sure you want to change the base?
Conversation
…ts & matchState of fotball
…ts & matchState of fotball
|
||
// Event-specific detail interfaces | ||
interface GoalDetails { | ||
team: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change type to ObjectId
|
||
interface SubstitutionDetails { | ||
team: string; | ||
outPlayer: Player; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of storing Player store the teamPlayer reference
interface InjuryDetails { | ||
team: string; | ||
player: Player; | ||
severity: 'minor' | 'moderate' | 'severe'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make enums
interface FoulDetails { | ||
team: string; | ||
player: Player; | ||
type: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make enum
player: Player; | ||
decision: string; | ||
minute: number; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to generic event, desc, minute, data { }
However i need the review for further changes in the codes :)