23 lines
460 B
PHP
23 lines
460 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models\Live;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class ViewerShareAudit extends Model
|
||
|
|
{
|
||
|
|
protected $table = 'viewer_cash_audit';
|
||
|
|
|
||
|
|
public function viewer(){
|
||
|
|
return $this->belongsTo(Viewer::class, 'viewer_id');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function otherViewer(){
|
||
|
|
return $this->belongsTo(Viewer::class, 'other_viewer_id');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function task(){
|
||
|
|
return $this->belongsTo(Task::class, 'task_id');
|
||
|
|
}
|
||
|
|
}
|