<?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('normalusers', function (Blueprint $table) {
            $table->id('normalUser_id');
            $table->string('normalUser_name');
            $table->string('normalUser_email');
            $table->string('normalUser_Photo');
            $table->string('normalUser_password');
            $table->string('normalUser_phone');
            $table->integer('normalUser_type')->default('0');
            $table->string('normalUser_token');
            $table->integer('normalUser_verifyCode');
            $table->string('normalUser_country')->nullable();
            $table->tinyInteger('normalUser_approve');
            $table->foreignId('normalUser_vendor_id')->references('vendor_id')->on('vendors');
            $table->timestamps();
        });
    }

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