2018-07-18 00:04:04 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2018-08-28 03:07:36 +00:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
2018-07-18 00:04:04 +00:00
|
|
|
|
|
|
|
class CreateReportLogsTable extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('report_logs', function (Blueprint $table) {
|
|
|
|
$table->increments('id');
|
|
|
|
$table->bigInteger('profile_id')->unsigned();
|
|
|
|
$table->bigInteger('item_id')->unsigned()->nullable();
|
|
|
|
$table->string('item_type')->nullable();
|
|
|
|
$table->string('action')->nullable();
|
|
|
|
$table->boolean('system_message')->default(false);
|
|
|
|
$table->json('metadata')->nullable();
|
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('report_logs');
|
|
|
|
}
|
|
|
|
}
|