Model CompanyActivity
namespace HubletoApp\Customers\Models\CompanyActivity
List of activities connected to the Company model.
Constants
This model does not define constants.
Properties
Property | Value |
---|---|
eloquentClass | Eloquent\CompanyActivity::class |
table | company_activities |
Data Scructure
Column | Title | ADIOS Type | Length | Required |
---|---|---|---|---|
id | ID | int | TRUE | |
id_company | Company | lookup | TRUE | |
id_activity | Activity | lookup | TRUE |
Foreign Keys
Column | Model | Relation | OnUpdate | OnDelete |
---|---|---|---|---|
id_company | Modules\Core\Customers\Models\Company | 1:1 | Cascade | Restrict |
id_activity | Modules\Core\Customers\Models\Activity | 1:1 | Cascade | Restrict |
Indexes
Only default indexes are used.
Relations
Relation | Type | Other parameters |
---|---|---|
COMPANY | BELONGS_TO | Company::class, 'id_company', 'id' |
ACTIVITY | BELONGS_TO | Activity::class, 'id_activity', 'id' |
Read more about working with relations