Files
Vari 223f94a07b Fixed Catalog item Prestige reard and reward item tables and import using only the catalog item id as id, so we could not differentiate between the prestige levels.
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.
2024-02-28 13:06:56 +01:00

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',
);
}
}