[WIP] Improvement

This commit is contained in:
2022-08-29 12:00:49 +07:00
parent 10f99bfb9a
commit b942a7e468
30 changed files with 1395 additions and 328 deletions

View File

@@ -0,0 +1,41 @@
<?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_manager', function (Blueprint $table) {
$table->id();
$table->foreignId('corporate_id');
$table->foreignId('user_id');
$table->timestamps();
$table->softDeletes();
$table->foreignId('created_by')->nullable();
$table->foreignId('updated_by')->nullable();
$table->foreignId('deleted_by')->nullable();
$table->index(['corporate_id', 'user_id']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('corporate_manager');
}
};