<?php
/* 
 * Migrations generated by: Skipper (http://www.skipper18.com)
 * Migration id: 20640eb6-d377-431c-acd9-ee62c3411147
 * Migration datetime: 2022-03-18 14:38:13.845660
 */ 

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

class SkipperMigrations2022031814381384 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->bigInteger('id')->autoIncrement()->unsigned();
            $table->string('nome')->nullable(true);
            $table->string('cognome')->nullable(true);
            $table->string('email')->nullable(true)->unique();
            $table->string('password')->nullable(true);
            $table->timestamp('email_verified_at')->nullable(true);
            $table->string('remember_token')->nullable(true);
            $table->timestamp('created_at')->nullable(true);
            $table->timestamp('updated_at')->nullable(true);
        });
        Schema::create('config', function (Blueprint $table) {
            $table->string('key');
            $table->string('group')->nullable(true);
            $table->string('display_name')->nullable(true);
            $table->longText('value')->nullable(true);
            $table->integer('order')->nullable(true);
            $table->string('type')->nullable(true);
            $table->timestamp('created_at')->nullable(true);
            $table->timestamp('updated_at')->nullable(true);
            $table->primary(['key']);
        });
    }
    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('config');
        Schema::dropIfExists('users');
    }
}
