foreign keys

This commit is contained in:
2021-05-30 21:01:56 +09:00
parent 973a8a7ebb
commit f506f9275d

View File

@@ -46,7 +46,7 @@ class CreateNewMoonRentalTables extends Migration
Schema::create('alliance_moon_ores', function (Blueprint $table) { Schema::create('alliance_moon_ores', function (Blueprint $table) {
$table->id(); $table->id();
$table->unsignedBigInteger('moon_id'); $table->unsignedBigInteger('moon_id');
$table->string('moon_name'); $table->string('moon_name')->default('Not Assigned');
$table->unsignedBigInteger('ore_type_id'); $table->unsignedBigInteger('ore_type_id');
$table->string('ore_name'); $table->string('ore_name');
$table->float('quantity'); $table->float('quantity');