Model PersonTag
namespace Hubleto\App\Customers\Models\PersonTag
List of assigned tags to a Person
Constants
This model does not define constants.
Properties
| Property | Value |
|---|---|
| eloquentClass | Eloquent\PersonTag::class |
| table | person_tags |
| lookupSqlValue | [TABLE].id |
Data Scructure
| Column | Title | ADIOS Type | Length | Required |
|---|---|---|---|---|
| id | ID | int | TRUE | |
| id_tag | Tag | lookup | TRUE | |
| id_person | Person | lookup | TRUE |
Foreign Keys
| Column | Model | Relation | OnUpdate | OnDelete |
|---|---|---|---|---|
| id_tag | Modules\Core\Settings\Models\Tag | 1:N | Cascade | Restrict |
| id_person | Modules\Core\Customers\Models\Person | 1:N | Cascade | Restrict |
Indexes
Only default indexes are used.
Relations
| Relation | Type | Other parameters |
|---|---|---|
| TAG | BELONGS_TO | Tag::class, 'id_tag', 'id' |
| PERSON | BELONGS_TO | Person::class, 'id_person', 'id' |
