AnonSec Team
Server IP : 103.11.96.170  /  Your IP : 3.15.5.27
Web Server : Microsoft-IIS/10.0
System : Windows NT WIN-F6SLGVICLOP 10.0 build 17763 (Windows Server 2016) AMD64
User : elibrary.unsap.ac.id ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  D:/localhost/info/database/migrations/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : D:/localhost/info/database/migrations/2022_04_17_062635_create_pegawais_table.php
<?php

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

class CreatePegawaisTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('pegawais', function (Blueprint $table) {
            $table->uuid('pegawai_id')->primary();
            $table->string('nidn',15)->nullable();
            $table->string('nitk',15)->nullable();
            $table->string('nipy')->nullable();
            $table->string('nama');
            $table->string('nik')->nullable();
            $table->string('gelar_depan',20)->nullable();
            $table->string('gelar_belakang',20)->nullable();   
            $table->string('jabatan')->nullable();      
            
            $table->string('tempat_lahir')->nullable(); 
            $table->date('tanggal_lahir')->nullable(); 
            $table->enum('jk',['L','P'])->default('L');
            $table->string('status')->nullable();
            $table->string('nama_pasangan')->nullable();
            $table->string('alamat_ktp')->nullable(); 
            $table->boolean('is_unsap')->default(0);

            $table->date('tmt_awal')->nullable(); 
            $table->string('masa_kerja_tahun')->nullable(); 
            $table->string('masa_kerja_bulan')->nullable(); 

            $table->string('desc')->nullable();
            $table->boolean('active')->default(1);
            //Dekanat =1, Rektorat=2, Yayasan=3
            $table->integer('validasi')->default(0);
            $table->integer('is_ajuan')->default(0);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        DB::statement('SET FOREIGN_KEY_CHECKS = 0');
        Schema::dropIfExists('pegawais');
        DB::statement('SET FOREIGN_KEY_CHECKS = 1');
    }
}

AnonSec - 2021