Model DealLabel
namespace Hubleto\App\Deals\Models\DealLabel
Labels given to a Deal
Constants
This model does not define constants.
Properties
| Property | Value |
|---|---|
| eloquentClass | Eloquent\DealLabel::class |
| table | deal_labels |
| lookupSqlValue | [TABLE].id |
Data Scructure
| Column | Title | ADIOS Type | Length | Required |
|---|---|---|---|---|
| id_deal | Deal | lookup | TRUE | |
| id_label | Label | lookup | TRUE |
Foreign Keys
| Column | Model | Relation | OnUpdate | OnDelete |
|---|---|---|---|---|
| id_deal | Modules\Sales\Deals\Models\Deal | 1:1 | Cascade | Restrict |
| id_label | Modules\Core\Settings\Models\Label | 1:1 | Cascade | Restrict |
Indexes
Only default indexes are used.
Relations
| Relation | Type | Other parameters |
|---|---|---|
| DEAL | BELONGS_TO | Deal::class, 'id_deal','id' |
| LABEL | BELONGS_TO | Label::class, 'id_label','id' |
