<?php

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

return new class extends Migration
{
    public function up(): void
    {
        Schema::create('packing_slips', function (Blueprint $table) {
            $table->id();

            $table->foreignId('order_id')->nullable()->constrained(); // todo: replace this once orders are actually in da system
            $table->foreignId('customer_id')->nullable()->constrained();
            $table->date('date_received');
            $table->string('amount')->nullable();
            $table->string('contents');

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

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