user side of contracts
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Contracts;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AcceptedBid extends Model
|
||||
{
|
||||
// Table Name
|
||||
public $table = 'accepted_bid';
|
||||
|
||||
//Timestamps
|
||||
public $timestamps = true;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'contract_id',
|
||||
'bid_id',
|
||||
'amount',
|
||||
];
|
||||
}
|
||||
@@ -10,7 +10,7 @@ class Bid extends Model
|
||||
public $table = 'contract_bids';
|
||||
|
||||
// Timestamps
|
||||
public $timestamps = false;
|
||||
public $timestamps = true;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
@@ -19,7 +19,7 @@ class Bid extends Model
|
||||
*/
|
||||
protected $fillable = [
|
||||
'contract_id',
|
||||
'bid',
|
||||
'bid_amount',
|
||||
'accepted',
|
||||
];
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ class Contract extends Model
|
||||
*/
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'date',
|
||||
'end_date',
|
||||
'body',
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user