atcheck/database/migrations/2019_11_26_232945_create_rooms_table.php

35 lines
732 B
PHP
Raw Normal View History

<?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');
}
}