<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class PurchaseOrderDetail extends Model
{
  protected $table='purchase_orders_detail';

  protected $fillable = array('quantity', 'unit_price', 'total', 'purchase_order_id');

  protected $hidden = ['created_at','updated_at','purchase_order_id'];

  public function purchase_order()
  {
    return $this->belongsTo('App\PurchaseOrder');
  }
}
