next commit
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
32
app/Models/Lookups/AllianceLookup.php
Normal file
32
app/Models/Lookups/AllianceLookup.php
Normal 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',
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
35
app/Models/Lookups/CharacterLookup.php
Normal file
35
app/Models/Lookups/CharacterLookup.php
Normal 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',
|
||||
];
|
||||
}
|
||||
37
app/Models/Lookups/CorporationLookup.php
Normal file
37
app/Models/Lookups/CorporationLookup.php
Normal 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',
|
||||
];
|
||||
}
|
||||
24
app/Models/Lookups/SolarSystem.php
Normal file
24
app/Models/Lookups/SolarSystem.php
Normal 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',
|
||||
];
|
||||
}
|
||||
27
app/Models/Lookups/SolarSystemDistance.php
Normal file
27
app/Models/Lookups/SolarSystemDistance.php
Normal 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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user