next commit

This commit is contained in:
2019-09-26 01:45:12 -05:00
parent e94b153718
commit 89a691af52
22 changed files with 1505 additions and 37 deletions

View File

@@ -1,10 +1,20 @@
<?php
namespace App;
namespace App\Models\Admin;
use Illuminate\Database\Eloquent\Model;
class AllowedLogin extends Model
{
//
}
//Table Name
public $table = 'allowed_logins';
//Timestamps
public $timestamps = true;
protected $fillable = [
'entity_id',
'entity_type',
'login_type',
];
}

View File

@@ -1,10 +1,28 @@
<?php
namespace App;
namespace App\Models\Esi;
use Illuminate\Database\Eloquent\Model;
class EsiScope extends Model
{
//
}
// Table Name
protected $table = 'esi_scopes';
// Timestamps
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'character_id',
'scope',
];
public function user() {
return $this->belongsTo('App\Models\User\User', 'character_id', 'character_id');
}
}

View File

@@ -1,10 +1,32 @@
<?php
namespace App;
namespace App\Models\Esi;
use Illuminate\Database\Eloquent\Model;
class EsiToken extends Model
{
//
}
// Table Name
protected $table = 'esi_tokens';
//Primary Key
public $primaryKey = 'id';
// Timestamps
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'character_id',
'access_token',
'refresh_token',
'expires_in',
];
public function esiscopes() {
return $this->hasMany('App\Models\EsiScope', 'character_id', 'character_id');
}
}

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Models\Lookups;
use Illuminate\Database\Eloquent\Model;
class AllianceLookup extends Model
{
//Table Name
public $table = 'alliance_lookup';
//Timestamps
public $timestamps = false;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'alliance_id',
'creator_corporation_id',
'creator_id',
'date_founded',
'executor_corporation_id',
'faction_id',
'name',
'ticker',
];
}

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Models\Lookups;
use Illuminate\Database\Eloquent\Model;
class CharacterLookup extends Model
{
//Table Name
public $table = 'character_lookup';
//Timestamps
public $timestamps = false;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'character_id',
'alliance_id',
'ancestry_id',
'birthday',
'bloodline_id',
'corporation_id',
'description',
'faction_id',
'gender',
'name',
'race_id',
'security_status',
'title',
];
}

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Models\Lookups;
use Illuminate\Database\Eloquent\Model;
class CorporationLookup extends Model
{
//Table Name
public $table = 'corporation_lookup';
//Timestamps
public $timestamps = false;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'corporation_id',
'alliance_id',
'ceo_id',
'creator_id',
'date_founded',
'description',
'faction_id',
'home_station_id',
'member_count',
'name',
'shares',
'tax_rate',
'ticker',
'url',
'war_eligible',
];
}

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',
];
}

View File

@@ -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',
];
}