%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/core/database/migrations/
Upload File :
Create Path :
Current File : /home/vacivi36/core/database/migrations/2024_10_30_000001_create_companies_table.php

<?php

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

class CreateCompaniesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('companies', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('cnpj')->unique();
            $table->string('address');
            $table->string('phone');
            $table->boolean('status')->default(true);
            $table->string('name_responsible')->nullable();
            $table->integer('number_employees')->nullable();
            $table->text('notes')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

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

Zerion Mini Shell 1.0