new lookup functionality

This commit is contained in:
2019-08-27 00:19:34 -05:00
parent 918645b05e
commit 48d5304f0b
7 changed files with 478 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<?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
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',
];
}
+37
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',
];
}