<?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('qr_settings', function (Blueprint $table) {
            $table->id('qr_settings_id' );
            $table->foreignId('qr_settings_vendor_id')->references('qr_user_id')->on('qr_users');

            // Interface qr_settings
            $table->string('qr_settings_main_color');
            $table->string('qr_settings_main_titleEN');
            $table->string('qr_settings_main_titleAR');
            $table->string('qr_settings_main_logo')->nullable();
            $table->string('qr_settings_background')->nullable();
            $table->string('qr_settings_main_text_color');
            $table->string('qr_settings_main_phone')->nullable();
            $table->string('qr_settings_main_email')->nullable();
            // Interface qr_settings

            // Social Media
            $table->string('qr_settings_facebook')->nullable();
            $table->string('qr_settings_X')->nullable();
            $table->string('qr_settings_instagram')->nullable();
            $table->string('qr_settings_youtube')->nullable();
            $table->string('qr_settings_main_whatsapp')->nullable();
            $table->string('qr_settings_snapchat')->nullable();
            $table->string('qr_settings_tiktok')->nullable();
            $table->string('qr_settings_googleplay')->nullable();
            $table->string('qr_settings_appstore')->nullable();
            // Social Media

            // SEO
            $table->string('qr_settings_main_SEO')->nullable();
            // SEO

            // About
            $table->string('qr_settings_main_aboutEN')->nullable();
            $table->string('qr_settings_main_aboutAR')->nullable();
            // About

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('qr_settings');
    }
};
