Files
pos/database/migrations/2026_02_21_231000_create_pegawai_table.php
2026-03-06 03:26:11 +07:00

27 lines
685 B
PHP

<?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('pegawai', function (Blueprint $table) {
$table->id();
$table->string('nama');
$table->string('jabatan')->nullable();
$table->string('telepon')->nullable();
$table->string('alamat')->nullable();
$table->boolean('is_aktif')->default(true);
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('pegawai');
}
};