%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hr/api/database/migrations/
Upload File :
Create Path :
Current File : /var/www/html/hr/api/database/migrations/2020_03_20_175958_create_working_days_table.php

<?php

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

class CreateWorkingDaysTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('working_days', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('day_id')
                  ->index();
            $table->foreign('day_id')
                  ->references('id')
                  ->on('days');
            $table->time('starts_at');
            $table->time('ends_at');
            $table->boolean('has_shifts');
            $table->date('valid_from');
            $table->date('valid_to')
                  ->nullable();
            $table->timestamps();
        });
    }

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

Zerion Mini Shell 1.0