52 lines
1.7 KiB
PHP
52 lines
1.7 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('companies', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('name');
|
|
$table->string('email');
|
|
$table->text('address');
|
|
$table->string('director_name');
|
|
$table->string('director_nik');
|
|
$table->string('director_nik_doc')->nullable();
|
|
$table->string('deed_incorporation');
|
|
$table->string('deed_incorporation_doc')->nullable();
|
|
$table->string('siup_nib');
|
|
$table->string('siup_nib_doc')->nullable();
|
|
$table->string('npwp');
|
|
$table->string('npwp_doc')->nullable();
|
|
$table->string('pkp');
|
|
$table->string('pkp_doc')->nullable();
|
|
$table->string('annual_tax_return');
|
|
$table->string('annual_tax_return_doc')->nullable();
|
|
$table->string('domicile_certificate');
|
|
$table->string('domicile_certificate_doc')->nullable();
|
|
$table->string('profile');
|
|
$table->string('profile_doc')->nullable();
|
|
$table->string('cooperation_request');
|
|
$table->string('cooperation_request_doc')->nullable();
|
|
$table->unsignedBigInteger('user_id');
|
|
$table->foreign('user_id')->references('id')->on('users');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('companies');
|
|
}
|
|
};
|