mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-07 18:56:00 -05:00
Also update updateMetadatagroup to only update picked challenges when to challenge already exists for that item. Updated the import-catalog command to also import the signature challenges and associate them with the items that want them.
37 lines
739 B
PHP
37 lines
739 B
PHP
<?php
|
|
|
|
namespace App\Models\Game;
|
|
|
|
use Illuminate\Database\Eloquent\Concerns\HasUuids;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* @mixin IdeHelperPickedChallenge
|
|
*/
|
|
class PickedChallenge extends Model
|
|
{
|
|
use HasFactory, HasUuids;
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'completion_value',
|
|
'asset_path',
|
|
];
|
|
|
|
protected $attributes = [
|
|
'progress' => 0,
|
|
];
|
|
|
|
public function characterData(): BelongsTo
|
|
{
|
|
return $this->belongsTo(CharacterData::class);
|
|
}
|
|
|
|
public function catalogItem(): BelongsTo
|
|
{
|
|
return $this->belongsTo(CatalogItem::class);
|
|
}
|
|
}
|