<?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('shipping_entries', function (Blueprint $table) { $table->id(); $table->enum('shipping_type', ['Pickup', 'We ship', 'They ship']); $table->foreignId('customer_id')->constrained('customers'); $table->string('courier')->nullable(); $table->string('contact')->nullable(); $table->string('account_title')->nullable(); $table->string('account_url')->nullable(); $table->string('account_username')->nullable(); $table->string('account_password')->nullable(); $table->string('info_needed')->nullable(); $table->string('notify')->nullable(); $table->string('notes')->nullable(); $table->softDeletes(); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('shipping_entries'); } };