<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('site_values', function (Blueprint $table) {
            $table->id();
            $table->timestamps();
            $table->text('name_en');
            $table->text('name_ar');
            $table->text('description_en');
            $table->text('description_ar');
            $table->text('photo_url');
            $table->foreignId('about_page_content_id')->default(1)->references('id')->on('about_page_contents')->constrained()->restrictOnUpdate()->restrictOnDelete();
        });
    }

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