Sindbad~EG File Manager

Current Path : /proc/thread-self/cwd/database/migrations/
Upload File :
Current File : //proc/thread-self/cwd/database/migrations/2023_06_06_123531_create_startups_table.php

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateStartupsTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('startups', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('cnpj')->nullable();
            $table->string('foundation_year');
            $table->string('state');
            $table->string('city');
            $table->string('stage')->nullable();
            $table->longText('photo')->nullable();
            $table->string('sector');
            $table->unsignedBigInteger('user_id');
            $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('startups');
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists