changed table of Moons to RentalMoons
This commit is contained in:
@@ -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',
|
||||||
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user