fixed create filament

This commit is contained in:
2025-04-22 19:50:15 +02:00
parent 1f10d68542
commit b2ac0db2de
3 changed files with 103 additions and 30 deletions
@@ -18,9 +18,9 @@ return new class extends Migration
$table->foreignId('color_id')->constrained()->onUpdate('cascade')->onDelete('cascade');
$table->foreignId('manufacturer_id')->constrained()->onUpdate('cascade')->onDelete('cascade');;
$table->foreignId('filament_type_id')->constrained()->onUpdate('cascade')->onDelete('cascade');;
$table->string('weight')->required();
$table->string('diameter')->required();
$table->string('price')->nullable();
$table->integer('weight')->required();
$table->decimal('diameter', 10, 2)->required();
$table->decimal('price', 10, 2)->nullable();
$table->string('finish')->nullable();
$table->string('image')->nullable();
$table->integer('stock')->default(0);