Files
trafficpumper/app/Models/EarnTaskAssignment.php
2026-08-29 15:53:53 +03:00

33 lines
772 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasOne;
class EarnTaskAssignment extends Model
{
protected $guarded = [];
/**
* Atamanın gerçek müşteri sahibini döndürür.
*
* @author Gökhan Engin - İletişim : https://bit.ly/YazılımUzmanı
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
/**
* Atama için kabul edilmiş tek idempotent sonucu döndürür.
*
* @author Gökhan Engin - İletişim : https://bit.ly/YazılımUzmanı
*/
public function result(): HasOne
{
return $this->hasOne(EarnTaskResult::class);
}
}