created framework for market orders and public contracts

This commit is contained in:
2020-05-14 03:51:58 -05:00
parent 47b0949290
commit 5e435bdf1a
18 changed files with 720 additions and 27 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Models\Market;
use Illuminate\Database\Eloquent\Model;
class MarketGroup extends Model
{
//Table Name
protected $table = 'market_groups';
//Timestamps
public $timestamps = true;
/**
* Items which are mass assignable
*
* @var array
*/
protected $fillable = [
'group',
'description',
'market_group_id',
'name',
'parent_group_id',
'types',
];
}
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App\Models\Market;
use Illuminate\Database\Eloquent\Model;
class MarketPrice extends Model
{
//Table Name
protected $table = 'market_prices';
//Timestamps
public $timestamps = true;
/**
* Items which are mass assignable
*
* @var array
*/
protected $fillable = [
'type_id',
'adjusted_price',
'average_price',
'lowest_price',
'highest_price',
'order_count',
'volume',
];
}
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace App\Models\Market;
use Illuminate\Database\Eloquent\Model;
class MarketRegionOrder extends Model
{
//Table Name
protected $table = 'market_region_orders';
//Timestamps
public $timestamps = true;
/**
* Items which are mass assignable
*
* @var array
*/
protected $fillable = [
'duration',
'is_buy_order',
'issued',
'location_id',
'min_volume',
'order_id',
'price',
'range',
'system_id',
'type_id',
'volume_remain',
'volume_total',
];
}