57 lines
2.1 KiB
PHP
57 lines
2.1 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('trade_license');
|
|
$table->string('trade_license_doc')->nullable();
|
|
$table->string('tax_id_number');
|
|
$table->string('tax_id_number_doc')->nullable();
|
|
$table->string('taxable_enterprise');
|
|
$table->string('taxable_enterprise_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')->nullable();
|
|
$table->string('profile_doc')->nullable();
|
|
$table->string('cooperation_request')->nullable();
|
|
$table->string('cooperation_request_doc')->nullable();
|
|
$table->text('edit_description')->nullable();
|
|
$table->enum('edit_status', ['0', '1', '2', '3'])->default('0');
|
|
$table->date('validated_at')->nullable();
|
|
$table->text('rejection_reason')->nullable();
|
|
$table->unsignedBigInteger('user_id');
|
|
$table->foreign('user_id')->references('id')->on('users');
|
|
$table->timestamps();
|
|
$table->softDeletes();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('companies');
|
|
}
|
|
};
|