From d6907f9ce449ea2f356118113ef411c9316ce350 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 9 Jan 2021 00:05:21 -0700 Subject: [PATCH] Add StatusArchived model + migration --- app/StatusArchived.php | 11 ++++++ ...8_012026_create_status_archiveds_table.php | 35 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 app/StatusArchived.php create mode 100644 database/migrations/2020_12_28_012026_create_status_archiveds_table.php diff --git a/app/StatusArchived.php b/app/StatusArchived.php new file mode 100644 index 000000000..862dddc69 --- /dev/null +++ b/app/StatusArchived.php @@ -0,0 +1,11 @@ +id(); + $table->bigInteger('status_id')->unsigned()->index(); + $table->bigInteger('profile_id')->unsigned()->index(); + $table->string('original_scope')->nullable(); + $table->json('metadata')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('status_archiveds'); + } +}