From a8b6002c0bbe60cc260a3883347d0966456e4f8b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 11 Sep 2018 18:47:25 -0600 Subject: [PATCH] Add Activity Model/Migration --- app/Activity.php | 10 ++++++ ...8_09_11_202435_create_activities_table.php | 36 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 app/Activity.php create mode 100644 database/migrations/2018_09_11_202435_create_activities_table.php diff --git a/app/Activity.php b/app/Activity.php new file mode 100644 index 000000000..e4b8b9f97 --- /dev/null +++ b/app/Activity.php @@ -0,0 +1,10 @@ +bigIncrements('id'); + $table->bigInteger('to_id')->unsigned()->nullable(); + $table->bigInteger('from_id')->unsigned()->nullable(); + $table->string('object_type')->nullable(); + $table->json('data')->nullable(); + $table->timestamp('processed_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('activities'); + } +}