mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-07 18:56:00 -05:00
Implemented tracking the progress of Signature challenges. Also implemented both challenges Endpoints "getChallenges" ans "getChallengeProgressionBatch". For "getChallenges", we just return an empty array since we dont need weekly and dailies yet.
36 lines
742 B
PHP
36 lines
742 B
PHP
<?php
|
|
|
|
namespace App\Models\Game;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
/**
|
|
* @mixin IdeHelperPrestigeReward
|
|
*/
|
|
class PrestigeReward extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'catalog_prestige_rewards';
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'catalog_item_id',
|
|
'cost_currency_a',
|
|
'cost_currency_b',
|
|
'cost_currency_c',
|
|
];
|
|
|
|
public function rewardItems(): HasMany
|
|
{
|
|
return $this->hasMany(
|
|
PrestigeRewardItem::class,
|
|
'prestige_reward_id',
|
|
);
|
|
}
|
|
}
|