bigIncrements('id'); $table->bigInteger('group_id')->unsigned()->nullable()->index(); $table->bigInteger('profile_id')->unsigned()->nullable()->index(); $table->string('name')->nullable(); $table->string('type')->index(); $table->json('tags')->nullable(); $table->json('location')->nullable(); $table->text('description')->nullable(); $table->json('metadata')->nullable(); $table->boolean('open')->default(false)->index(); $table->boolean('comments_open')->default(false); $table->boolean('show_guest_list')->default(false); $table->timestamp('start_at')->nullable(); $table->timestamp('end_at')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('group_events'); } }