atcheck/database/migrations/2019_11_26_232945_create_rooms_table.php
2019-11-27 00:46:00 +01:00

35 lines
732 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('room', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name');
$table->integer('capacity')->nullable();
$table->string('arrangement')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('rooms');
}
}