Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+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');
}
}