id(); $table->string('titre'); $table->text('description')->nullable(); $table->foreignId('fournisseur_id')->constrained('fournisseurs')->onDelete('cascade'); $table->foreignId('service_id')->constrained('services')->onDelete('cascade'); $table->date('date_debut')->nullable(); $table->date('date_echeance'); $table->enum('statut', ['actif', 'a_renouveler', 'expire', 'resilie'])->default('actif'); $table->decimal('montant', 10, 2)->nullable(); $table->integer('preavis_jours')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('contrats'); } };