alliance fleet tables and models

This commit is contained in:
2020-04-07 23:47:35 -05:00
parent 2d6989ed1c
commit 861f3654d2
6 changed files with 138 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace App\Models\Fleets;
use Illuminate\Database\Eloquent\Model;
class AllianceFleet extends Model
{
/**
* Table Name
*/
protected $table = 'alliance_fleets';
/**
* Timestamps
*/
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'fleet_id',
'fleet_commander_id',
'fleet_commander_name',
'member_count',
'fleet_opened_time',
'fleet_closed_time',
];
}
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace App\Models\Fleets;
use Illuminate\Database\Eloquent\Model;
class AllianceFleetMember extends Model
{
/**
* Table Name
*/
protected $table = 'alliance_fleet_members';
/**
* Timestamps
*/
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'fleet_id',
'character_id',
'character_name',
'fleet_joined_time',
'fleet_leaved_time',
];
}