#57 user can save flights
This commit is contained in:
@@ -46,6 +46,15 @@ class CreateFlightsTable extends Migration
|
||||
$table->text('value');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('user_flights', function(Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('user_id', false, true);
|
||||
$table->uuid('flight_id');
|
||||
|
||||
$table->index('user_id');
|
||||
$table->index(['user_id', 'flight_id']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -57,5 +66,6 @@ class CreateFlightsTable extends Migration
|
||||
{
|
||||
Schema::drop('flights');
|
||||
Schema::drop('flight_fields');
|
||||
Schema::drop('user_flights');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user