srp module

This commit is contained in:
2019-06-28 23:58:10 -05:00
parent 05de378cdd
commit e0db4dac3e
5 changed files with 95 additions and 60 deletions
-27
View File
@@ -1,27 +0,0 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Fleet extends Model
{
//Table Name
protected $table = 'srp_fleet';
//Primary Key
public $primaryKey = 'fleet_id';
//Timestamps
public $timestamps = true;
//Fillable Items
protected $fillable = [
'fleet_id',
'fleet_name',
'fleet_commander',
'fleet_commander_id',
'fleet_type',
'fleet_description',
];
}
@@ -4,7 +4,7 @@ namespace App\Models\SRP;
use Illuminate\Database\Eloquent\Model;
class Ship extends Model
class SRPShip extends Model
{
//Table Name
protected $table = 'srp_ships';
@@ -17,9 +17,17 @@ class Ship extends Model
//Fillable Items
protected $fillable = [
'ship_type',
'character_id',
'character_name',
'fleet_commander_name',
'fleet_commander_id',
'zkillboard',
'ship_type',
'loss_value',
'notes',
'approved',
'paid_value',
'paid_by_id',
'paid_by_name',
];
}