-
-
Save uno-de-piera/8cdec00685decccbfb09929ee5675273 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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