Anons79 Mini Shell

Directory : /home/aplikasiposinfo/.trash/database/migrations/
Upload File :
Current File : /home/aplikasiposinfo/.trash/database/migrations/2022_05_15_112317_create_karyawans_table.php

<?php

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

class CreateKaryawansTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('karyawans', function (Blueprint $table) {
            $table->id();
            $table->string('id_karyawan')->unique();
            // $table->unsignedBigInteger('jadwal_kerja_id')->index();
            // $table->unsignedBigInteger('shift_kerja_id')->index();
            $table->unsignedBigInteger('perusahaan_id')->index();
            $table->unsignedBigInteger('jabatan_id')->nullable()->index();
            $table->unsignedBigInteger('departemen_id')->nullable()->index();
            $table->unsignedBigInteger('gaji_id')->index()->nullable();
            $table->unsignedBigInteger('user_id')->nullable()->index();
            $table->string('jabatan',200)->nullable();
            $table->string('nik')->nullable();
            $table->string('nama');
            $table->string('email')->unique();
            $table->string('no_hp',20)->nullable();
            $table->enum('jenis_kelamin',['L','P']);
            $table->string('password');
            $table->string('foto')->nullable();
            $table->date('tanggal_mulai_kerja')->nullable();
            $table->rememberToken();
            $table->timestamps();
      
        });
    }

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

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]