<?php

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

class CreateOrdersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('orders', function (Blueprint $table) {
            $table->id();
            $table->string('currency', 3)->nullable();
            $table->decimal('price', 11, 0)->nullable();
            $table->json('address')->nullable();
            $table->decimal('days', 6, 0)->nullable();
            $table->timestamps();
        });
    }

    // rest of the migration
}