30 lines
770 B
PHP
30 lines
770 B
PHP
<?php
|
|
|
|
namespace Modules\Crm\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class CrmCompanyContact extends Model
|
|
{
|
|
protected $table = 'crm_company_contacts';
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
public static function roles(): array
|
|
{
|
|
return [
|
|
'ceo' => __('crm::lang.role_ceo'),
|
|
'sales_manager' => __('crm::lang.role_sales_manager'),
|
|
'purchase_manager' => __('crm::lang.role_purchase_manager'),
|
|
'technical_manager' => __('crm::lang.role_technical_manager'),
|
|
'gatekeeper' => __('crm::lang.role_gatekeeper'),
|
|
'other' => __('crm::lang.role_other'),
|
|
];
|
|
}
|
|
|
|
public function company()
|
|
{
|
|
return $this->belongsTo(CrmCompany::class, 'company_id');
|
|
}
|
|
}
|