Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created August 18, 2019 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/8cdec00685decccbfb09929ee5675273 to your computer and use it in GitHub Desktop.
Save uno-de-piera/8cdec00685decccbfb09929ee5675273 to your computer and use it in GitHub Desktop.
<?php
Schema::create('subscriptions', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('user_id');
$table->string('name');
$table->string('stripe_id')->collation('utf8mb4_bin');
$table->string('stripe_status'); // nueva columna en Cashier 10!
$table->string('stripe_plan');
$table->integer('quantity');
$table->timestamp('trial_ends_at')->nullable();
$table->timestamp('ends_at')->nullable();
$table->timestamps();
$table->index(['user_id', 'stripe_status']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment