Model LeadService
namespace HubletoApp\Leads\Models\LeadService
A list of services attached to a Lead
Constants
This model does not define constants.
Properties
Property | Value |
---|---|
eloquentClass | Eloquent\LeadService::class |
table | lead_services |
lookupSqlValue | [TABLE].id_service |
Data Scructure
Column | Title | ADIOS Type | Length | Required |
---|---|---|---|---|
id | ID | int | TRUE | |
unit_price | Unit Price | float | TRUE | |
amount | Amount | int | TRUE | |
discount | Discount (%) | float | FALSE | |
tax | Tax (%) | float | FALSE | |
id_lead | Lead | lookup | TRUE | |
id_service | Service | lookup | TRUE |
Foreign Keys
Column | Model | Relation | OnUpdate | OnDelete |
---|---|---|---|---|
id_lead | Modules\Sales\Leads\Models\Lead | 1:1 | Cascade | Restrict |
id_service | Modules\Core\Services\Models\Service | 1:1 | Cascade | Restrict |
Indexes
Only default indexes are used.
Relations
Relation | Type | Other parameters |
---|---|---|
LEAD | BELONGS_TO | Lead::class, 'id_lead','id' |
SERVICE | BELONGS_TO | Service::class, 'id_service','id' |