File: /var/www/vaspayment.com/database/migrations/2023_10_14_191711_create_businesses_table.php
<?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('businesses', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('category')->default('VTU Partner Business');
$table->text('description');
$table->string('address');
$table->string('city');
$table->string('state');
$table->string('phone');
$table->string('email');
$table->string('biz_email');
$table->string('facebook');
$table->string('instagram');
$table->string('linkedin');
$table->string('twitter');
$table->string('website');
$table->foreignId('user_id')->references('id')->on('users')->onDelete('cascade');
$table->string('logo')->nullable();
$table->string('icon')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('businesses');
}
};