Skip to content
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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

iamanishx
Copy link
Collaborator

  1. This PR adds the updation of schema and DTOs for football Events , Format and MatchState .
  2. I have also updated the controller section for each with admin guards .
    However i need the review for further changes in the codes :)

@iamanishx iamanishx requested a review from zakhaev26 January 4, 2025 11:23

// Event-specific detail interfaces
interface GoalDetails {
team: string;
Copy link
Member

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;
Copy link
Member

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';
Copy link
Member

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;
Copy link
Member

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;
}
Copy link
Member

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 { }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants