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
@@ -7,7 +7,7 @@ use Illuminate\Database\Eloquent\Model;
class Moon extends Model class Moon extends Model
{ {
// Table Name // Table Name
protected $table = 'Moons'; protected $table = 'RentalMoons';
//Primary Key //Primary Key
public $primaryKey = 'id'; public $primaryKey = 'id';
@@ -20,6 +20,7 @@ class Moon extends Model
'System', 'System',
'Planet', 'Planet',
'Moon', 'Moon',
'StructureId',
'StructureName', 'StructureName',
'FirstOre', 'FirstOre',
'FirstQuantity', 'FirstQuantity',
+1
View File
@@ -20,6 +20,7 @@ class MoonRental extends Model
'System', 'System',
'Planet', 'Planet',
'Moon', 'Moon',
'StructureId',
'RentalCorp', 'RentalCorp',
'RentalEnd', 'RentalEnd',
'Contact', 'Contact',
@@ -20,6 +20,7 @@ class CreateMoonsTable extends Migration
$table->string('System'); $table->string('System');
$table->string('Planet'); $table->string('Planet');
$table->string('Moon'); $table->string('Moon');
$table->unsignedBigInteger('StructureId')->nullable();
$table->string('StructureName')->default('No Name'); $table->string('StructureName')->default('No Name');
$table->string('FirstOre')->default('None'); $table->string('FirstOre')->default('None');
$table->integer('FirstQuantity')->default('0'); $table->integer('FirstQuantity')->default('0');
@@ -41,6 +42,7 @@ class CreateMoonsTable extends Migration
$table->string('System'); $table->string('System');
$table->string('Planet'); $table->string('Planet');
$table->string('Moon'); $table->string('Moon');
$table->unsignedBigInteger('StructureId')->nullable();
$table->string('RentalCorp'); $table->string('RentalCorp');
$table->dateTime('RentalEnd'); $table->dateTime('RentalEnd');
$table->string('Contact'); $table->string('Contact');