26 lines
668 B
PHP
26 lines
668 B
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('services', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('nom')->unique();
|
|
$table->text('description')->nullable();
|
|
$table->string('couleur', 7)->nullable()->default('#3B82F6');
|
|
$table->string('icone', 50)->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('services');
|
|
}
|
|
};
|