diff --git a/database/migrations/2024_06_24_084544_create_user_activities_table.php b/database/migrations/2024_06_24_084544_create_user_activities_table.php index 722fd98..2801963 100644 --- a/database/migrations/2024_06_24_084544_create_user_activities_table.php +++ b/database/migrations/2024_06_24_084544_create_user_activities_table.php @@ -13,6 +13,13 @@ public function up(): void { Schema::create('user_activities', function (Blueprint $table) { $table->id(); + $table->foreignId('user_id')->constrained()->onDelete('cascade'); + $table->string('activity'); + $table->text('description'); + $table->string('device'); + $table->string('browser'); + $table->string('ip'); + $table->string('user_agent'); $table->timestamps(); }); }