Add ImportData model/migration

This commit is contained in:
Daniel Supernault 2018-05-19 21:07:04 -06:00
parent 2bb0d1ca8b
commit 7313bca4e6
2 changed files with 46 additions and 0 deletions

10
app/ImportData.php Normal file
View File

@ -0,0 +1,10 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ImportData extends Model
{
//
}

View File

@ -0,0 +1,36 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateImportDatasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('import_datas', function (Blueprint $table) {
$table->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');
}
}