first commit

This commit is contained in:
Saufi
2026-06-24 20:32:14 +08:00
commit 10fb30ad69
201 changed files with 21356 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('consultants', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->nullable()->constrained('users')->nullOnDelete();
$table->string('nama_perunding');
$table->string('no_pendaftaran_syarikat')->nullable();
$table->text('alamat')->nullable();
$table->string('emel')->nullable();
$table->string('telefon')->nullable();
$table->boolean('aktif')->default(true);
$table->timestamps();
$table->softDeletes();
$table->index('aktif');
$table->index('nama_perunding');
});
}
public function down(): void
{
Schema::dropIfExists('consultants');
}
};