Initial commit

This commit is contained in:
Ronald Huynen
2026-03-23 21:37:59 +01:00
commit 2547717edb
2193 changed files with 972171 additions and 0 deletions

View File

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