laravelEcomm/database/migrations/2024_07_10_101243_create_user_chats_table.php
2024-07-10 17:25:14 +05:45

31 lines
654 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('user_chats', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('phone_number');
$table->string('email');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('user_chats');
}
};