master_template/database/migrations/2024_06_10_101634_create_tbl_settings.php

63 lines
2.4 KiB
PHP
Raw Permalink Normal View History

2024-06-10 12:21:58 +00:00
<?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('settings', function (Blueprint $table) {
$table->id('setting_id');
$table->string('title', 255)->nullable();
$table->text('description')->nullable();
$table->string('url1', 255)->nullable();
$table->string('url2', 255)->nullable();
$table->string('location', 255)->nullable();
$table->string('email', 255)->nullable();
$table->string('phone', 255)->nullable();
$table->string('secondary_phone', 255)->nullable();
$table->string('working_hours', 255)->nullable();
$table->string('working_days', 255)->nullable();
$table->string('leave_days', 255)->nullable();
$table->text('google_map')->nullable();
$table->string('fb', 255)->nullable();
$table->string('insta', 255)->nullable();
$table->string('twitter', 255)->nullable();
$table->string('tiktok', 255)->nullable();
$table->string('youtube', 255)->nullable();
$table->string('primary_logo', 255)->nullable();
$table->string('secondary_logo', 255)->nullable();
$table->string('thumb', 255)->nullable();
$table->string('icon', 255)->nullable();
$table->string('og_image', 255)->nullable();
$table->string('no_image', 250)->nullable();
$table->string('copyright_text', 250)->nullable();
$table->text('content1')->nullable();
$table->text('content2')->nullable();
$table->text('content3')->nullable();
$table->string('seo_title', 255)->nullable();
$table->text('seo_description')->nullable();
$table->text('seo_keywords')->nullable();
$table->text('og_tags')->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('settings');
}
};