logistics module

This commit is contained in:
2019-07-06 04:04:30 -05:00
parent 7eceef4818
commit 4a38bc2fee
13 changed files with 743 additions and 3 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
namespace App\Models\Contracts;
use Illuminate\Database\Eloquent\Model;
class EveContract extends Model
{
//Table name
public $table = 'eve_contracts';
//Timestamps
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'contract_id',
'acceptor_id',
'assignee_id',
'availability',
'buyout',
'collateral',
'date_accepted',
'date_completed',
'date_expired',
'date_issued',
'days_to_complete',
'end_location_id',
'for_corporation',
'issuer_corporation_id',
'issuer_id',
'price',
'reward',
'start_location_id',
'status',
'title',
'volume',
];
}
@@ -0,0 +1,19 @@
<?php
namespace App\Models\Jobs;
use Illuminate\Database\Eloquent\Model;
class JobProcessContracts extends Model
{
//No table name is needed
//Timestamps
public $timestamps = false;
protected $fillable = [
'charId',
'corpId',
'page',
];
}
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace App\Models\Lookups;
use Illuminate\Database\Eloquent\Model;
class SolarSystem extends Model
{
//Table Name
public $table = 'solar_systems';
//Timestamps
public $timestamps = false;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'name',
'solar_system_id',
];
}
@@ -0,0 +1,27 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class SolarSystemDistance extends Model
{
//Table Name
public $table = 'solar_system_distances';
//Timestamps
public $timestamps = false;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'start_id',
'start_name',
'end_id',
'end_name',
'distance',
];
}