refactor(migrations): hapus dan perbaiki struktur tabel database
- Menghapus migration `create_currencies_table` dan `create_label_name_inspeksi_table` yang tidak digunakan. - Menambahkan `timestamps` dan `softDeletes` pada beberapa tabel untuk peningkatan konsistensi dan fitur auditing. - Mengubah `authorized_status` dari wajib menjadi nullable di beberapa tabel untuk fleksibilitas data.
This commit is contained in:
@@ -20,14 +20,12 @@ return new class () extends Migration {
|
||||
$table->string('luas');
|
||||
$table->unsignedBigInteger('jenis_jaminan_id');
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
$table->timestamps();
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
|
||||
$table->timestamps(); // created_at and updated_at
|
||||
$table->softDeletes();
|
||||
$table->unsignedBigInteger('created_by')->nullable();
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user