Member & Hospital

This commit is contained in:
ivan-sim
2023-10-20 11:02:20 +07:00
parent 51deb0f810
commit 257af7ca9c
14 changed files with 1100 additions and 639 deletions

View File

@@ -0,0 +1,42 @@
<?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('corporate_hospitals', function (Blueprint $table) {
$table->id();
$table->bigInteger('corporate_id');
$table->bigInteger('organization_id');
$table->string('code', 255);
$table->string('name', 255);
$table->text('description')->nullable();
$table->tinyInteger('active')->default(1);
$table->text('reason');
$table->timestamps();
$table->softDeletes();
$table->bigInteger('created_by')->nullable();
$table->bigInteger('updated_by')->nullable();
$table->bigInteger('deleted_by')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('corporate_hospitals');
}
};