master_template/database/migrations/2024_06_10_102427_create_tbl_teams.php
2024-06-10 18:06:58 +05:45

40 lines
1.2 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('teams', function (Blueprint $table) {
$table->id('team_id');
$table->integer('branches_id')->nullable();
$table->string('title', 255)->nullable();
$table->string('alias', 255)->nullable();
$table->string('photo', 255)->nullable();
$table->string('thumb', 255)->nullable();
$table->string('designation', 255)->nullable();
$table->string('role', 255)->nullable();
$table->text('description')->nullable();
$table->integer('display_order')->nullable();
$table->integer('status')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('teams');
}
};