API APP DOCTOR

This commit is contained in:
ivan-sim
2024-04-23 16:28:59 +07:00
parent 2cf00ac927
commit 1cb3b2d3f0
15 changed files with 811 additions and 10 deletions

View File

@@ -0,0 +1,38 @@
<?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('person_educations', function (Blueprint $table) {
$table->id();
$table->bigInteger('person_id');
$table->integer('level_id')->comment('1=SD, 2= SMP, 3=SMA dst.');
$table->string('name', 255);
$table->dateTime('start_date');
$table->dateTime('end_date');
$table->bigInteger('created_by')->nullable();
$table->bigInteger('updated_by')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('person_educations');
}
};

View File

@@ -0,0 +1,33 @@
<?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::table('practitioners', function (Blueprint $table) {
$table->string('str_number', 255)->after('person_id')->nullable();
$table->dateTime('exp_date_str')->after('str_number')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('practitioners', function (Blueprint $table) {
//
});
}
};

View File

@@ -0,0 +1,33 @@
<?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::table('practitioner_roles', function (Blueprint $table) {
$table->string('sip_number', 255)->after('period_end')->nullable();
$table->dateTime('exp_date_sip')->after('sip_number')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('practitioner_roles', function (Blueprint $table) {
//
});
}
};