user side of contracts

This commit is contained in:
2019-04-26 02:51:23 -05:00
parent b367e2a166
commit 791681034c
9 changed files with 165 additions and 26 deletions
+25
View File
@@ -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',
];
}
+2 -2
View File
@@ -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',
];
+1 -1
View File
@@ -19,7 +19,7 @@ class Contract extends Model
*/
protected $fillable = [
'title',
'date',
'end_date',
'body',
];