Initial commit

This commit is contained in:
root committed 2026-05-09 17:32:17 +02:00
commit 9d73f82529
5575 files changed
+281989

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class DailyChallenge extends Model
{
#[\Override]
protected $fillable = [
'name', 'description', 'game', 'type', 'target', 'reward_currency', 'reward_amount', 'date',
];
#[\Override]
protected $casts = ['target' => 'integer', 'reward_amount' => 'integer', 'date' => 'date'];
public function progress(): HasMany
{
return $this->hasMany(UserChallengeProgress::class, 'challenge_id');
}
}