id(); $table->foreignId('brand_id')->nullable()->constrained()->cascadeOnDelete(); $table->string('name', 50); $table->string('slug', 70)->unique(); $table->string('sku', 20)->unique(); $table->enum('concentration', Concentration::values())->default(Concentration::EXTRAIT_DE_PERFUME)->comment(Concentration::comment()); $table->unsignedInteger('cost_price')->default(0); $table->unsignedInteger('sale_price')->default(0); $table->unsignedInteger('point_per_ml'); $table->string('base_notes')->nullable(); $table->string('middle_notes')->nullable(); $table->string('top_notes')->nullable(); $table->text('description')->nullable(); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->nullable()->useCurrentOnUpdate(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('perfumes'); } };