public function histories() { return $this->hasMany(InventoryTransactionHistory::class, 'transaction_id', 'id'); }