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