mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-25 07:24:03 +00:00
40 lines
896 B
PHP
40 lines
896 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateDecisionsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('decisions', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
|
|
$table->unsignedInteger('wa_id');//FK warehouse arrangement
|
|
$table->foreign('wa_id')
|
|
->references('id')->on('warehousearrs')
|
|
->onDelete('cascade');
|
|
|
|
$table->string('decision_type');
|
|
$table->string('description');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('decisions');
|
|
}
|
|
}
|