Model Service
namespace Hubleto\App\Services\Models\Service
List of services/products available in the system.
Constants
This model does not define constants.
Properties
| Property | Value |
|---|---|
| eloquentClass | Eloquent\Service::class |
| table | services |
| lookupSqlValue | [TABLE].name |
Data Scructure
| Column | Title | ADIOS Type | Length | Required |
|---|---|---|---|---|
| id | ID | int | TRUE | |
| name | Name | varchar | TRUE | |
| price | Unit Price | float | TRUE | |
| unit | Unit | varchar | TRUE | |
| description | Description | varchar | TRUE | |
| id_currency | Currency | lookup | TRUE |
Foreign Keys
| Column | Model | Relation | OnUpdate | OnDelete |
|---|---|---|---|---|
| id_currency | Modules\Core\Settings\Models\Currency | 1:1 | Cascade | SET NULL |
Indexes
Only default indexes are used.
Relations
| Relation | Type | Other parameters |
|---|---|---|
| CURRENCY | HAS_ONE | Currency::class, 'id', 'id_currency' |
