Files
Belupeti 7f30d10e1d
Build / Build-image (push) Failing after 6s
add new assets and refactor public folder
2026-09-24 13:04:40 +02:00

32 lines
785 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
class Wish extends Model
{
use HasUuids;
use HasFactory;
protected $table = 'wishes';
protected $fillable = ['title', 'description', 'reward', 'owner_id', 'status', 'agent_id', 'guest_id', 'icon_type', 'icon_rune', 'type', 'color'];
public function agent(): BelongsTo
{
return $this->belongsTo(User::class, 'agent_id', 'uuid');
}
public function owner(): BelongsTo
{
return $this->belongsTo(User::class, 'owner_id', 'uuid');
}
public function guest(): BelongsTo
{
return $this->belongsTo(Guest::class, 'guest_id', 'uuid');
}
}