v0.9.13 - Added notifications in events, when an event you're signed up to gets canceled.

This commit is contained in:
frederikpyt
2020-08-14 07:36:42 +02:00
parent bd0d504ab8
commit 9e0f449bd3
8 changed files with 98 additions and 13 deletions
@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateNotifications extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notifications', function (Blueprint $table) {
$table->id();
$table->foreignId("user_id")->constrained("users", "id");
$table->string("message");
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('notifications');
}
}