Advertisement
Guest User

Untitled

a guest
May 15th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.05 KB | None | 0 0
  1. <?php
  2.  
  3. use Illuminate\Support\Facades\Schema;
  4. use Illuminate\Database\Schema\Blueprint;
  5. use Illuminate\Database\Migrations\Migration;
  6.  
  7. class CreateMManagedPropertyInquiriesTable extends Migration
  8. {
  9.     /**
  10.      * Run the migrations.
  11.      *
  12.      * @return void
  13.      */
  14.     public function up()
  15.     {
  16.         Schema::create('m_managed_property_inquiries', function (Blueprint $table) {
  17.             $table->increments('id');
  18.             $table->timestamps();
  19.             $table->tinyInteger('deleted')->comment('削除フラグ')->default(0);
  20.             $table->integer('m_managed_property_id', 5)->comment('管理物件表id')->nullable();
  21.             $table->string('inquiry_type')->comment('内見・反響(KPI)')->nullable();
  22.             $table->DateTime('created_at')->nullable();
  23.             $table->DateTime('updated_at')->nullable();
  24.  
  25.         });
  26.     }
  27.  
  28.     /**
  29.      * Reverse the migrations.
  30.      *
  31.      * @return void
  32.      */
  33.     public function down()
  34.     {
  35.         Schema::dropIfExists('m_managed_property_inquiries');
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement