<?php

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

class CreateCustomersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('customers', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('jbk')->default('/');
            $table->string('konzola')->default('/');
            $table->string('opstina')->default('/');
            $table->string('address')->default('/');
            $table->string('name')->default('No Name');
            $table->string('phone_number')->default('00000000000');
            $table->integer('number_of_rent')->default(0);
            $table->decimal('money_spent')->default(0);
            $table->string('comment')->default('/');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('customers');
    }
}

{'avg_line_length': 26.853658536585368, 'max_line_length': 67, 'alphanum_fraction': 0.547683923705722, 'licenses': ['MIT'], 'repository_name': 'aleksandargrujic95/rentApp', 'path': 'database/migrations/2019_10_14_192008_create_customers_table.php', 'size': 1101, 'lang': 'PHP'}