atcheck/database/migrations/2019_11_26_232945_create_rooms_table.php
2019-12-09 12:17:23 +01:00

35 lines
751 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateRoomsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('rooms', function (Blueprint $table) {
$table->bigIncrements('id')->unique();
$table->string('name')->unique();
$table->integer('capacity')->nullable();
$table->text('arrangement')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('rooms');
}
}