Skip to content

Commit

Permalink
Add model tables
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyDavidson committed Nov 19, 2024
1 parent b5f12b9 commit 0ebf90a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Models/EventMatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ class EventMatch extends Model

use HasMergedRelationships;

/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'events_matches';

/**
* The attributes that are mass assignable.
*
Expand Down
7 changes: 7 additions & 0 deletions app/Models/EventMatchCompetitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
#[CollectedBy(EventMatchCompetitorsCollection::class)]
class EventMatchCompetitor extends MorphPivot
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'events_matches_competitors';

/**
* The attributes that are mass assignable.
*
Expand Down
7 changes: 7 additions & 0 deletions app/Models/EventMatchResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@

class EventMatchResult extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'events_matches_results';

/**
* Get the winner of the event match.
*
Expand Down

0 comments on commit 0ebf90a

Please sign in to comment.