View file hrm-saas-2.5.7/script/database/migrations/2013_10_08_070623_create_subscription_plans.php

File size: 838B
<?php

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

class CreateSubscriptionPlans extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('subscription_plans', function (Blueprint $table) {
            $table->increments('id');
            $table->string('plan_name');
            $table->string('stripe_id');
            $table->integer('start_user_count');
            $table->integer('end_user_count');
            $table->double('price');
            $table->boolean('status')->default(1);
            $table->timestamps();
        });
    }

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