changed table of Moons to RentalMoons

This commit is contained in:
2020-04-26 05:40:30 -05:00
parent 8cf41c5c36
commit b2de6fa5cd
3 changed files with 5 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class Moon extends Model
{
// Table Name
protected $table = 'Moons';
protected $table = 'RentalMoons';
//Primary Key
public $primaryKey = 'id';
@@ -20,6 +20,7 @@ class Moon extends Model
'System',
'Planet',
'Moon',
'StructureId',
'StructureName',
'FirstOre',
'FirstQuantity',

View File

@@ -20,6 +20,7 @@ class MoonRental extends Model
'System',
'Planet',
'Moon',
'StructureId',
'RentalCorp',
'RentalEnd',
'Contact',

View File

@@ -20,6 +20,7 @@ class CreateMoonsTable extends Migration
$table->string('System');
$table->string('Planet');
$table->string('Moon');
$table->unsignedBigInteger('StructureId')->nullable();
$table->string('StructureName')->default('No Name');
$table->string('FirstOre')->default('None');
$table->integer('FirstQuantity')->default('0');
@@ -41,6 +42,7 @@ class CreateMoonsTable extends Migration
$table->string('System');
$table->string('Planet');
$table->string('Moon');
$table->unsignedBigInteger('StructureId')->nullable();
$table->string('RentalCorp');
$table->dateTime('RentalEnd');
$table->string('Contact');