mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
35 lines
875 B
PHP
35 lines
875 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class SupplierbookingCustomerbookingTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('supplierbooking_customerbooking', function (Blueprint $table) {
|
|
$table->integer('supplierbooking_id')->unsigned();
|
|
$table->integer('booking_id')->unsigned();
|
|
|
|
$table->foreign('supplierbooking_id')->references('id')->on('supplier_bookings');
|
|
$table->foreign('booking_id')->references('id')->on('bookings');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('supplierbooking_customerbooking');
|
|
}
|
|
}
|