laravelEcomm/database/migrations/2024_07_07_064420_create_orders_table.php
2024-07-07 13:06:31 +05:45

34 lines
757 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('orders', function (Blueprint $table) {
$table->id();
$table->integer('customerId');
$table->float('bill');
$table->string('address');
$table->string('name');
$table->string('phone');
$table->string('status');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('orders');
}
};