HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/orbidirectory.com/database/migrations/2024_06_24_125344_create_websites_table.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('websites', function (Blueprint $table) {
            $table->id();
            $table->unsignedInteger('user_id');
            $table->string('subdomain')->uniqid();
            $table->string('name');
            $table->string('email')->nullable();
            $table->string('phone_number');
            $table->string('whatsapp_number')->nullable();
            $table->date('dob');
            $table->string('address_line_1');
            $table->string('address_line_2')->nullable();
            $table->unsignedInteger('city_id');
            $table->unsignedInteger('state_id');
            $table->unsignedInteger('country_id');
            $table->string('zip_code');
            $table->string('about_heading');
            $table->text('about_description');
            $table->year('start_year');
            $table->integer('happy_customers');
            $table->integer('customer_rating')->comment('Customer rating out of 10');
            $table->integer('driving_skills')->comment('In Percent');
            $table->integer('navigation_skills')->comment('In Percent');
            $table->integer('time_management')->comment('In Percent');
            $table->text('additional_skills_desc');
            $table->string('booking_form_heading');
            $table->text('booking_form_desc');
            $table->string('why_choose_heading');
            $table->text('why_choose_desc');
            $table->string('service_heading');
            $table->text('service_desc');
            $table->string('facebook_url')->nullable();
            $table->string('instagram_url')->nullable();;
            $table->string('linkedin_url')->nullable();;
            $table->string('twitter_url')->nullable();;
            $table->tinyInteger('status')->default(1)->comment('0:Active, 1:Inactive');
            $table->timestamps();
        });
    }

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