From 7313bca4e69f2cf5c515c2f6ac5f21b2b986a5ab Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 19 May 2018 21:07:04 -0600 Subject: [PATCH] Add ImportData model/migration --- app/ImportData.php | 10 ++++++ ...04_26_000057_create_import_datas_table.php | 36 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 app/ImportData.php create mode 100644 database/migrations/2018_04_26_000057_create_import_datas_table.php diff --git a/app/ImportData.php b/app/ImportData.php new file mode 100644 index 000000000..d309f4df6 --- /dev/null +++ b/app/ImportData.php @@ -0,0 +1,10 @@ +increments('id'); + $table->bigInteger('profile_id')->unsigned(); + $table->string('service')->default('instagram'); + $table->string('path')->nullable(); + $table->tinyInteger('stage')->unsigned()->default(1); + $table->timestamp('completed_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('import_datas'); + } +}