alliance moon ores

This commit is contained in:
2021-05-30 18:39:01 +09:00
parent e1ea9fe4f4
commit bc59b580b0
3 changed files with 30 additions and 21 deletions

View File

@@ -31,15 +31,15 @@ class CreateNewMoonRentalTables extends Migration
Schema::create('alliance_moons', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('moon_id');
$table->string('name');
$table->string('name')->default('Not Assigned');
$table->unsignedBigInteger('system_id');
$table->string('system_name');
$table->decimal('worth_amount');
$table->string('system_name')->default('Not Assigned');
$table->decimal('worth_amount')->default(0.00);
$table->enum('rented', [
'No',
'Yes',
]);
$table->decimal('rental_amount');
])->default('No');
$table->decimal('rental_amount')->default(0.00);
$table->timestamps();
});
}
@@ -48,9 +48,12 @@ class CreateNewMoonRentalTables extends Migration
Schema::create('alliance_moons', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('moon_id');
$table->string('moon_name');
$table->string('moon_name')->default('Not Assigned');
$table->unsignedBigInteger('ore_type_id');
$table->string('ore_name');
$table->float('quantity');
$table->unsignedBigInteger('solar_system_id');
$table->unsignedBigInteger('planet_id');
});
}
@@ -58,8 +61,8 @@ class CreateNewMoonRentalTables extends Migration
Schema::create('alliance_moon_rentals', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('moon_id');
$table->string('moon_name');
$table->decimal('rental_amount', 20, 2);
$table->string('moon_name')->default('Not Assigned');
$table->decimal('rental_amount', 20, 2)->default(0.00);
$table->date('rental_start')->nullable();
$table->date('rental_end')->nullable();
$table->date('next_billing_date')->nullable();