From 9badec4280266872006a12bbe47a22b7dd293c36 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 17 Jul 2018 18:03:39 -0600 Subject: [PATCH] Add ReportComments model/migration --- app/ReportComment.php | 10 ++++++ ...22_062621_create_report_comments_table.php | 35 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 app/ReportComment.php create mode 100644 database/migrations/2018_06_22_062621_create_report_comments_table.php diff --git a/app/ReportComment.php b/app/ReportComment.php new file mode 100644 index 00000000..5d364e1e --- /dev/null +++ b/app/ReportComment.php @@ -0,0 +1,10 @@ +increments('id'); + $table->bigInteger('report_id')->unsigned()->index(); + $table->bigInteger('profile_id')->unsigned(); + $table->bigInteger('user_id')->unsigned(); + $table->text('comment'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('report_comments'); + } +}