JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "2022_08_11_160401_create_prices_table.php"

Full Path: /home/markqprx/iniasli.pro/common/Database/migrations/2022_08_11_160401_create_prices_table.php
File size: 1002 B
MIME-type: text/x-php
Charset: utf-8

<?php

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

class CreatePricesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('prices', function (Blueprint $table) {
            $table->id();
            $table->decimal('amount', 13, 2);
            $table->string('currency');
            $table->string('interval')->default('month');
            $table->integer('interval_count')->default(1);
            $table->integer('product_id')->index();
            $table->string('stripe_id', 50)->nullable();
            $table->string('paypal_id', 50)->nullable();
            $table->boolean('default')->default(false);
            $table->timestamps();
        });
    }

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