CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDailyAttendancesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('daily_attendances', function (Blueprint $table) {
$table->id();
$table->foreignId('employee_id')->nullable();
$table->dateTime('attend_date');
$table->boolean('attend_is_late')->nullable();
$table->string('attend_checkout');
$table->tinyInteger('status')->default('1');
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('daily_attendances');
}
}