// SYSTEM PANEL //
[ROOT]
/
mnt
/
pleskStorage
/
vhosts
/
kodsolutions.net
/
subdomains
/
syaaraa.kodsolutions.net
/
database
/
migrations
[ PARENT ]
EDIT :: 2023_05_14_231357_create_notifications_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('notifications', function (Blueprint $table) { $table->id(); $table->text('title')->nullable(); $table->longText('message')->nullable(); $table->nullableMorphs('model', 'model'); $table->boolean('seen')->default(0)->nullable(); $table ->foreignId('user_id') ->nullable() ->constrained() ->on('users') ->onUpdate('cascade') ->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('notifications'); } };
SAVE
CANCEL