logistics module
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
@@ -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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user