37 lines
783 B
PHP
37 lines
783 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
||
|
class CreateSeatsTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('seats', function (Blueprint $table) {
|
||
|
$table->bigIncrements('id');
|
||
|
$table->bigInteger('show_id');
|
||
|
$table->string('uuid');
|
||
|
$table->integer('seat');
|
||
|
$table->string('voucher');
|
||
|
$table->timestamp('date');
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('seats');
|
||
|
}
|
||
|
}
|