Member & Hospital
This commit is contained in:
@@ -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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user