Files
dsi-commander/database/migrations/2026_04_08_122745_create_domaines_table.php

32 lines
739 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('domaines', function (Blueprint $table) {
$table->id();
$table->string('nom')->unique();
$table->date('date_echeance')->nullable();
$table->text('prestataire')->nullable();
$table->string('hebergeur')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('domaines');
}
};