Files
w4rpservices/app/Models/Contracts/SupplyChainContract.php
2020-07-26 01:14:22 -05:00

38 lines
669 B
PHP

<?php
namespace App\Models\Contracts;
use Illuminate\Database\Eloquent\Model;
class SupplyChainContract extends Model
{
//Table Name
public $table = 'supply_chain_contracts';
//Timestamps
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'issuer_id',
'issuer_name',
'title',
'end_date',
'delivery_by',
'body',
'state',
'final_cost',
];
//Relationship
public function Bids() {
return $this->hasMany('App\Models\Contracts\SupplyChainBid', 'contract_id', 'id');
}
}