<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateKunjungansTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('kunjungans', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('karyawan_id')->index();
$table->string('nama_kunjungan');
$table->dateTime('visit_in');
$table->dateTime('visit_out')->nullable();
$table->string('visit_in_note')->nullable();
$table->string('visit_out_note')->nullable();
$table->string('visit_in_signature')->nullable();
$table->string('visit_out_signature')->nullable();
$table->string('latitude');
$table->string('longitude');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('kunjungans');
}
}
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]