id(); $table->string('type'); $table->string('severity'); $table->string('title'); $table->text('message'); $table->json('data')->nullable(); $table->string('notifiable_type')->nullable(); $table->unsignedBigInteger('notifiable_id')->nullable(); $table->timestamp('read_at')->nullable(); $table->timestamps(); $table->index('read_at'); $table->index('created_at'); $table->index(['notifiable_type', 'notifiable_id']); }); } public function down(): void { Schema::dropIfExists('notifications'); } };