<?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