#23 assign subfleets to ranks

This commit is contained in:
Nabeel Shahzad
2017-07-01 21:06:55 -05:00
parent 0821258a2d
commit 244d1ae7bd
11 changed files with 247 additions and 41 deletions

View File

@@ -26,6 +26,14 @@ class CreateSubfleetsTable extends Migration
$table->softDeletes();
});
Schema::create('subfleet_expenses', function(Blueprint $table) {
$table->integer('subfleet_id')->unsigned();
$table->string('name');
$table->decimal('cost', 19, 2)->unsigned();
$table->primary(['subfleet_id', 'name']);
});
Schema::create('subfleet_fare', function (Blueprint $table) {
$table->integer('subfleet_id')->unsigned();
$table->integer('fare_id')->unsigned();
@@ -65,7 +73,9 @@ class CreateSubfleetsTable extends Migration
public function down()
{
Schema::drop('subfleets');
Schema::drop('subfleet_rank');
Schema::drop('subfleet_expenses');
Schema::drop('subfleet_fare');
Schema::drop('subfleet_flight');
Schema::drop('subfleet_rank');
}
}