From 74fe13a6f990e680e66615928cd463f5f6df73f9 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 17 Jul 2018 18:04:04 -0600 Subject: [PATCH] Add ReportLog model/migration --- app/ReportLog.php | 10 +++++ ..._06_22_062628_create_report_logs_table.php | 37 +++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 app/ReportLog.php create mode 100644 database/migrations/2018_06_22_062628_create_report_logs_table.php diff --git a/app/ReportLog.php b/app/ReportLog.php new file mode 100644 index 000000000..dab0aa1ed --- /dev/null +++ b/app/ReportLog.php @@ -0,0 +1,10 @@ +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'); + } +}