50 lines
1.5 KiB
PHP
50 lines
1.5 KiB
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.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('operations', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->timestamps();
|
|
$table->string('nama');
|
|
$table->integer('umur');
|
|
$table->date('tanggal_lahir');
|
|
$table->string('suku');
|
|
$table->string('kelamin');
|
|
$table->string('alamat');
|
|
$table->integer('anak_ke');
|
|
$table->string('riwayathamil');
|
|
$table->string('riwayatkeluarga');
|
|
$table->string('riwayat_penyakit_terdahulu');
|
|
$table->string('riwayat_kawin_kerabat');
|
|
$table->string('diagnosa');
|
|
$table->string('jenis_terapi');
|
|
$table->string('jenis_cleft');
|
|
$table->string('kelainan_kongenital');
|
|
$table->date('tanggal_operasi');
|
|
$table->string('teknikoperasi');
|
|
$table->string('operator');
|
|
$table->string('lokasioperasi');
|
|
$table->string('followup');
|
|
$table->integer('created_by_id');
|
|
$table->string('created_by_name');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('operations');
|
|
}
|
|
};
|