You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
587 B
30 lines
587 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class OrderAgreement extends SoftDeletesModel
|
|
{
|
|
protected $table = "order_agreements";
|
|
|
|
public function paramedicSign()
|
|
{
|
|
return $this->hasOne(Uploads::class, 'id', 'paramedic_sign_id');
|
|
}
|
|
|
|
public function customerSign()
|
|
{
|
|
return $this->hasOne(Uploads::class, 'id', 'customer_sign_id');
|
|
}
|
|
|
|
public function companySign()
|
|
{
|
|
return $this->hasOne(Uploads::class, 'id', 'company_sign_id');
|
|
}
|
|
|
|
public function file()
|
|
{
|
|
return $this->hasOne(Uploads::class, 'id', 'file_id');
|
|
}
|
|
|
|
}
|