3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
7 return new class extends Migration
16 Schema::create('events', function (Blueprint $table) {
18 $table->string('name')->unique();
19 $table->text('title');
20 $table->timestamp('start')->nullable()->default(null);
21 $table->timestamp('end')->nullable()->default(null);
22 $table->boolean('visible')->default(false);
23 $table->string('external_schedule')->nullable()->default(null);
29 * Reverse the migrations.
33 public function down()
35 Schema::dropIfExists('events');