Snapshot of main at 9f39a6e1e (2026-11-02)

This commit is contained in:
Ronald Huynen committed 2026-11-02 10:41:47 +01:00
commit 6ccf1792d7
2580 files changed
+1040202

No files matched your search

@@ -0,0 +1,40 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class () extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('meetings', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('post_id')->unique(); // one-to-one relationship
$table->foreign('post_id')->nullable()->references('id')->on('posts')->onDelete('cascade');
$table->string('venue', 150)->nullable();
$table->string('address')->nullable(); // TODO: refactor into location model in later stage
$table->integer('meetingable_id')->nullable(); // Make organizer polymorph: user / organization / other
$table->string('meetingable_type')->nullable(); // Make organizer polymorph: user / organization / other
$table->integer('status')->unsigned()->default(1);
$table->dateTime('from')->nullable();
$table->dateTime('till')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('meetings');
}
};