D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
hms.dentostock.com
/
database
/
migrations
/
Filename :
2020_09_16_114031_create_opd_timelines_table.php
back
Copy
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('opd_timelines', function (Blueprint $table) { $table->increments('id'); $table->unsignedInteger('opd_patient_department_id'); $table->string('title'); $table->date('date'); $table->text('description')->nullable(); $table->boolean('visible_to_person')->default(true); $table->timestamps(); $table->foreign('opd_patient_department_id')->references('id')->on('opd_patient_departments') ->onDelete('cascade') ->onUpdate('cascade'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('opd_timelines'); } };