parsaaghayi-backend/database/migrations/2024_09_24_094609_create_services_table.php
parsa aghaei bd92c3e3fc initial
2024-09-25 13:05:18 +03:30

32 lines
684 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()
{
Schema::create('services', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->text('description');
$table->string('imageSrc');
$table->string('altText');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('services');
}
};