<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateKaryawanTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('karyawan', function (Blueprint $table) {
            $table->id();
            $table->string('nama_lengkap')->nullable();
            $table->string('posisi_jabatan')->nullable();
            $table->string('email')->nullable();
            $table->string('handphone')->nullable();
            $table->string('alamat')->nullable();
            $table->string('no_npwp')->nullable();
            $table->string('no_ktp')->nullable();
            $table->string('status_pekerja')->nullable();
            $table->string('gaji')->nullable();
            $table->string('nama_bank_rekening_gaji')->nullable();
            $table->string('no_rekening_gaji')->nullable();
            $table->string('atas_nama_rekening_gaji')->nullable();
            $table->date('tanggal_join')->nullable();
            $table->date('tanggal_resign')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('karyawan');
    }
}
