API Home dan Linking

This commit is contained in:
2024-04-18 08:46:49 +07:00
parent 666712f015
commit 1f26289b7a
11 changed files with 601 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?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('benefits', function (Blueprint $table) {
$table->integer('type')->nullable()->default(1)->comment('1=Non COB, 2=Cob');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('benefits', function (Blueprint $table) {
$table->dropColumn('type');
});
}
};

View File

@@ -0,0 +1,39 @@
<?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('persons', function (Blueprint $table) {
$table->dateTime('start_date_work')->nullable()->after('birth_place');
$table->integer('isOnline')
->default(0)
->comment('0=offline, 1=online')
->after('start_date_work');
$table->double('review')->after('isOnline');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('persons', function (Blueprint $table) {
$table->dropColumn('start_date_work');
$table->dropColumn('isOnline');
$table->dropColumn('review');
});
}
};

View File

@@ -0,0 +1,32 @@
<?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->integer('price')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('practitioner_roles', function (Blueprint $table) {
$table->dropColumn('price');
});
}
};