Apps Community apps Customers Model CompanyTag

Model CompanyTag

namespace HubletoApp\Customers\Models\CompanyTag

List of assigned tags to a Company

Constants

This model does not define constants.

Properties

Property Value
 eloquentClass Eloquent\CompanyTag::class
 table company_tags
 lookupSqlValue [TABLE].id_tag

Data Scructure

Column Title ADIOS Type Length Required
id ID  int TRUE
id_tag Tag  lookup TRUE
id_company Company  lookup TRUE

Foreign Keys

Column Model Relation OnUpdate OnDelete
id_tag Modules\Core\Settings\Models\Tag 1:N Cascade Restrict
id_company Modules\Core\Customers\Models\Company 1:N Cascade Restrict

Indexes

Only  default indexes are used.

Relations

Relation Type Other parameters
TAG BELONGS_TO Tag::class, 'id_tag', 'id'
COMPANY BELONGS_TO Company::class, 'id_company', 'id'
www.hubleto.com | Found a bug or missing something? Report an issue via GitHub.