id(); $table->string('code')->unique(); $table->string('name'); $table->text('description')->nullable(); $table->decimal('discount_amount', 10, 2)->nullable(); $table->integer('discount_percentage')->nullable(); $table->date('valid_from'); $table->date('valid_until'); $table->boolean('is_active')->default(true); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('vouchers'); } };