turkmentv/database/migrations/2020_07_26_222230_create_fo...

38 lines
901 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFoldersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('folders', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('title',255);
$table->text('description')->nullable();
$table->unsignedBigInteger('property_id');
$table->json('folder_table');
$table->boolean('choice_time')->default(0);
$table->string('total_price',255)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('folders');
}
}