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');
|
|
|
|
$table->string('internal_name');
|
2024-11-22 20:16:23 -05:00
|
|
|
$table->string('shipping_address_line_1');
|
|
|
|
$table->string('shipping_address_line_2');
|
|
|
|
$table->string('billing_address_line_1');
|
|
|
|
$table->string('billing_address_line_2');
|
2024-09-03 14:38:34 -07:00
|
|
|
$table->string('phone');
|
|
|
|
|
|
|
|
$table->softDeletes();
|
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('customers');
|
|
|
|
}
|
|
|
|
};
|