<?php

use Database\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class {{ class }} extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create($this->getModelTable(null,$this->getTableName()), function (Blueprint $table) {
            if (config('app.uuid', true)) {
                $table->uuid('id')->primary();
            } else {
                $table->id();
            }

            $table->softDeletesTz();
            $table->timestampsTz();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists($this->getModelTable(null,$this->getTableName()));
    }
    /**
     * @return mixed
     */
    public function getTableName()
    {
        return "{{ table }}";
    }
}
