Вход Регистрация
Файл: database/migrations/2020_11_11_020127_create_subscriptions_table.php
Строк: 46
<?php

use IlluminateDatabaseMigrationsMigration;
use 
IlluminateDatabaseSchemaBlueprint;
use 
IlluminateSupportFacadesSchema;

class 
CreateSubscriptionsTable extends Migration
{
    
/**
     * Run the migrations.
     *
     * @return void
     */
    
public function up()
    {
        
Schema::create('subscriptions', function (Blueprint $table) {
            
$table->bigIncrements('id');
            
$table->unsignedBigInteger('user_id');
            
$table->string('name')->index('name');
            
$table->string('stripe_id');
            
$table->string('stripe_status');
            
$table->string('stripe_plan')->nullable();
            
$table->integer('quantity')->nullable();
            
$table->timestamp('trial_ends_at')->nullable();
            
$table->timestamp('ends_at')->nullable();
            
$table->timestamps();
        });
    }

    
/**
     * Reverse the migrations.
     *
     * @return void
     */
    
public function down()
    {
        
Schema::dropIfExists('subscriptions');
    }
}
Онлайн: 1
Реклама