id(); $table->unsignedBigInteger('business_id'); $table->unsignedBigInteger('project_id')->nullable(); $table->unsignedBigInteger('system_id')->nullable(); $table->unsignedBigInteger('workflow_id')->nullable(); $table->unsignedBigInteger('status_id')->nullable(); $table->unsignedBigInteger('sprint_id')->nullable(); $table->unsignedBigInteger('task_id')->nullable(); $table->unsignedBigInteger('subject_id')->nullable();//row id $table->unsignedBigInteger('actor_id'); $table->unsignedBigInteger('user_id')->nullable(); $table->unsignedBigInteger('crud_id')->nullable(); $table->unsignedBigInteger('table_id')->nullable(); $table->json('original')->nullable(); // a unique identifier that represent the type of action $table->json('diff')->nullable(); // all data that has been changed $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('activities'); } }