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.

35 lines
691 B

8 months ago
<?php
namespace App\Models;
class OrderAgreement extends SoftDeletesModel
{
protected $table = "order_agreements";
8 months ago
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');
}
6 months ago
public function order()
{
return $this->hasOne(Orders::class, 'id', 'order_id');
}
8 months ago
}