50 lines
2.0 KiB
PHP
50 lines
2.0 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('branches', function (Blueprint $table) {
|
||
|
$table->id('branch_id');
|
||
|
$table->string('parent_branch', 255)->nullable()->default(null);
|
||
|
$table->string('title', 255)->nullable()->default(null);
|
||
|
$table->string('alias', 255)->nullable()->default(null);
|
||
|
$table->string('contact_person', 250)->nullable()->default(null);
|
||
|
$table->string('designation', 250)->nullable()->default(null);
|
||
|
$table->text('text')->nullable()->default(null);
|
||
|
$table->string('cover_photo', 255)->nullable()->default(null);
|
||
|
$table->string('thumb', 255)->nullable()->default(null);
|
||
|
$table->text('description')->nullable()->default(null);
|
||
|
$table->string('contact1', 250)->nullable()->default(null);
|
||
|
$table->string('contact2', 250)->nullable()->default(null);
|
||
|
$table->string('email', 250)->nullable()->default(null);
|
||
|
$table->text('address')->nullable()->default(null);
|
||
|
$table->text('google_map')->nullable()->default(null);
|
||
|
$table->integer('display_order')->nullable()->default(null);
|
||
|
$table->integer('status')->nullable()->default(null);
|
||
|
$table->text('seo_keywords')->nullable()->default(null);
|
||
|
$table->text('seo_title')->nullable()->default(null);
|
||
|
$table->text('seo_description')->nullable()->default(null);
|
||
|
$table->text('og_tags')->nullable()->default(null);
|
||
|
$table->integer('createdby')->nullable()->default(null);
|
||
|
$table->integer('updatedby')->nullable()->default(null);
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*/
|
||
|
public function down(): void
|
||
|
{
|
||
|
Schema::dropIfExists('branches');
|
||
|
}
|
||
|
};
|