wormhole stuff

This commit is contained in:
2019-08-05 02:09:51 -05:00
parent 7950d7d5ea
commit 41d433b7c8
5 changed files with 1020 additions and 96 deletions
+39
View File
@@ -0,0 +1,39 @@
<?php
namespace App\Models\Wormholes;
use Illuminate\Database\Eloquent\Model;
class AllianceWormhole extends Model
{
//Table Name
public $table = 'alliance_wormholes';
//Timestamps
public $timestamps = true;
//Primary Key
public $primaryKey = 'id';
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'sig_id',
'duration_left',
'date_scanned',
'time_scanned',
'class',
'type',
'hole_size',
'stability',
'details',
'link',
'mass_allowed',
'individual_mass',
'regeneration',
'max_stable_time',
];
}
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace App\Models\Wormholes;
use Illuminate\Database\Eloquent\Model;
class WormholeType extends Model
{
//Table Name
public $table = 'wormhole_types';
//Timestamps
public $timestamps = false;
//Primary Key
public $primaryKey = 'id';
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'type',
'leads_to',
'mass_allowed',
'individual_mass',
'regeneration',
'max_stable_time',
];
}