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',
];
}
@@ -0,0 +1,38 @@
<?php
namespace App\Models\PublicContracts;
use Illuminate\Database\Eloquent\Model;
class PublicContract extends Model
{
//Table Name
protected $table = 'public_contracts';
//Timestamps
public $timestamps = false;
/**
* Items which are mass assignable
*
* @var array
*/
protected $fillable = [
'buyout',
'collateral',
'contract_id',
'date_expired',
'date_issued',
'days_to_complete',
'end_location_id',
'for_corporation',
'issuer_corporation_id',
'issuer_id',
'price',
'reward',
'start_location_id',
'title',
'type',
'volume',
];
}
@@ -0,0 +1,31 @@
<?php
namespace App\Models\PublicContracts;
use Illuminate\Database\Eloquent\Model;
class PublicContractItem extends Model
{
//Table Name
protected $table = 'public_contract_items';
//Timestamps
public $timestamps = true;
/**
* Items which are mass assignable
*
* @var array
*/
protected $fillable = [
'is_blueprint_copy',
'is_included',
'item_id',
'material_efficency',
'quantity',
'record_id',
'runs',
'time_efficiency',
'type_id',
];
}