Edit File: 2024_09_01_153005_create_provider_work_times_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('provider_work_times', function (Blueprint $table) { $table->id(); $table->foreignId('provider_id')->constrained(); $table->foreignId('day_id')->constrained(); $table->time('from')->nullable(); $table->time('to')->nullable(); $table->boolean('is_holiday')->default(1); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('provider_work_times'); } };
Back to File Manager