<?php
// database/migrations/2024_01_01_000007_create_online_purchase_shopper_images_table.php

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

return new class extends Migration
{
    public function up()
    {
        Schema::create('online_purchase_shopper_images', function (Blueprint $table) {
            $table->id();
            $table->foreignId('purchase_shopper_id')->constrained('online_purchase_shoppers')->onDelete('cascade');
            $table->string('path');
            $table->timestamps();
        });
    }

    public function down()
    {
        Schema::dropIfExists('online_purchase_shopper_images');
    }
};