You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
349B

  1. <?php
  2. namespace App\Models;
  3. use Framework\Database\Model;
  4. class Item extends Model
  5. {
  6. protected string $table = 'items';
  7. public function stock(): mixed
  8. {
  9. return $this->hasMany(Stock::class, 'item_id');
  10. }
  11. public function movements(): mixed
  12. {
  13. return $this->hasMany(StockMovement::class, 'item_id');
  14. }
  15. }

Powered by TurnKey Linux.