Files
Global-Jain/database/migrations/2022_03_23_122855_create_thanas_table.php
2025-11-05 10:37:10 +05:30

37 lines
863 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateThanasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// Thana (Group)
Schema::create('thanas', function (Blueprint $table) {
$table->id();
$table->foreignId('sant_id')->constrained()->cascadeOnDelete()->index();
$table->string('name');
$table->bigInteger('created_by')->nullable()->length(20);
$table->bigInteger('updated_by')->nullable()->length(20);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('thanas');
}
}