Add foreign keys to field in Category, Item models.

This commit is contained in:
2023-06-19 15:04:02 +03:00
parent 90edc9bdf4
commit e0ec4f1efa
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ class Category extends Model
'uuid', 'uuid',
'name', 'name',
'url', 'url',
'company_id',
]; ];
public function company(): BelongsTo public function company(): BelongsTo
+1
View File
@@ -18,6 +18,7 @@ class Item extends Model
'description', 'description',
'price', 'price',
'image', 'image',
'category_id',
]; ];
public function category(): BelongsTo public function category(): BelongsTo