topnotch_website/database/migrations/006_create_shipping_entries_table.php

34 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2024-09-03 15:15:57 -07:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2024-09-09 15:29:31 -07:00
return new class extends Migration
{
2024-09-03 15:15:57 -07:00
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();
2024-09-03 15:15:57 -07:00
$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');
}
};