32 lines
653 B
PHP
32 lines
653 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class CooperationCompletion extends Model
|
|
{
|
|
protected $table = 'cooperation_completions';
|
|
|
|
protected $fillable = [
|
|
'payment_request_letter',
|
|
'invoice',
|
|
'bank_reference',
|
|
'electronic_tax_invoice',
|
|
'other_document',
|
|
'description',
|
|
'status',
|
|
'rejection_reason',
|
|
'media_id',
|
|
'order_id',
|
|
];
|
|
|
|
public function order(){
|
|
return $this->belongsTo(Order::class, 'order_id', 'id');
|
|
}
|
|
|
|
public function media(){
|
|
return $this->belongsTo(Media::class, 'media_id', 'id');
|
|
}
|
|
}
|