uuid('id')->primary(); $table->string('type'); $table->morphs('notifiable'); $table->text('data'); $table->timestamp('read_at')->nullable(); $table->boolean('is_closed')->default(false); $table->foreignId('user_id') // Usuario que crea la notificación ->nullable() ->constrained('users') ->nullOnDelete(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('notifications'); } };