topnotch_website/database/migrations/000_create_customers_table.php

32 lines
886 B
PHP
Raw Normal View History

2024-09-03 14:38:34 -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 14:38:34 -07:00
public function up()
{
Schema::create('customers', function (Blueprint $table) {
$table->id();
2024-09-03 15:15:57 -07:00
2024-09-03 14:38:34 -07:00
$table->string('company_name');
2025-01-24 21:37:05 -05:00
$table->string('internal_name')->nullable();
$table->string('shipping_address_line_1')->nullable();
$table->string('shipping_address_line_2')->nullable();
$table->string('billing_address_line_1')->nullable();
$table->string('billing_address_line_2')->nullable();
$table->string('phone')->nullable();
2024-09-03 14:38:34 -07:00
$table->softDeletes();
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('customers');
}
};