PATH:
home
/
lab2454c
/
healthvalidate.com
/
vendor
/
laravel
/
cashier
/
database
/
migrations
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSubscriptionItemsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('subscription_items', function (Blueprint $table) { $table->bigIncrements('id'); $table->unsignedBigInteger('subscription_id'); $table->string('stripe_id')->index(); $table->string('stripe_product'); $table->string('stripe_price'); $table->integer('quantity')->nullable(); $table->timestamps(); $table->unique(['subscription_id', 'stripe_price']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('subscription_items'); } }
[-] 2019_05_03_000001_create_customer_columns.php
[edit]
[-] 2019_05_03_000002_create_subscriptions_table.php
[edit]
[+]
..
[-] 2019_05_03_000003_create_subscription_items_table.php
[edit]