Fix Pint formatting
This commit is contained in:
+11
-12
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class Competition extends BaseModel
|
||||
@@ -34,20 +33,20 @@ class Competition extends BaseModel
|
||||
|
||||
protected $casts = [
|
||||
'class_section_id' => 'integer',
|
||||
'winners_count' => 'integer',
|
||||
'prize_per_point' => 'decimal:2', // adjust precision if needed
|
||||
'winners_count' => 'integer',
|
||||
'prize_per_point' => 'decimal:2', // adjust precision if needed
|
||||
|
||||
'is_published' => 'boolean',
|
||||
'is_locked' => 'boolean',
|
||||
'is_published' => 'boolean',
|
||||
'is_locked' => 'boolean',
|
||||
|
||||
// change to 'date' if your columns are DATE (not DATETIME)
|
||||
'start_date' => 'date',
|
||||
'end_date' => 'date',
|
||||
'published_at' => 'datetime',
|
||||
'locked_at' => 'datetime',
|
||||
'start_date' => 'date',
|
||||
'end_date' => 'date',
|
||||
'published_at' => 'datetime',
|
||||
'locked_at' => 'datetime',
|
||||
|
||||
'locked_by' => 'integer',
|
||||
'created_by' => 'integer',
|
||||
'locked_by' => 'integer',
|
||||
'created_by' => 'integer',
|
||||
];
|
||||
|
||||
/* Optional relationships */
|
||||
@@ -70,4 +69,4 @@ class Competition extends BaseModel
|
||||
{
|
||||
return $this->hasMany(CompetitionClassWinner::class, 'competition_id');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user