update format export surat

This commit is contained in:
KhatamNugraha
2024-01-10 11:33:46 +07:00
parent e9f5bc4082
commit 59f4dafe65
7 changed files with 546 additions and 220 deletions

View File

@ -0,0 +1,45 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('letters', function (Blueprint $table) {
$table->id();
$table->string('no_cif');
$table->string('no_surat');
$table->string('tgl_surat');
$table->string('no_req_surat')->nullable();
$table->string('tgl_req_surat')->nullable();
$table->string('nama_tujuan',250)->nullable();
$table->string('alamat', 500)->nullable();
$table->string('email')->nullable();
$table->string('tlp')->nullable();
$table->string('status', 1)->default('1');
$table->timestamps();
$table->softDeletes();
$table->unsignedBigInteger("created_by")->nullable();
$table->unsignedBigInteger("updated_by")->nullable();
$table->unsignedBigInteger("deleted_by")->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('letters');
}
};