diff --git a/database/migrations/2025_03_10_183058_create_filaments.php b/database/migrations/2025_03_10_183058_create_filaments.php new file mode 100644 index 0000000..9009430 --- /dev/null +++ b/database/migrations/2025_03_10_183058_create_filaments.php @@ -0,0 +1,35 @@ +id(); + $table->timestamps(); + $table->string('name')->required(); + $table->string('description')->nullable(); + $table->string('color_id')->required(); + $table->string('manufacturer_id')->required(); + $table->string('filament_type_id')->required(); + $table->string('weight')->required(); + $table->string('diameter')->required(); + $table->string('price')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('filaments'); + } +}; diff --git a/database/migrations/2025_03_10_183844_create_colors.php b/database/migrations/2025_03_10_183844_create_colors.php new file mode 100644 index 0000000..54ec1ef --- /dev/null +++ b/database/migrations/2025_03_10_183844_create_colors.php @@ -0,0 +1,29 @@ +id(); + $table->timestamps(); + $table->string('name')->required(); + $table->string('hex')->required(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('colors'); + } +}; diff --git a/database/migrations/2025_03_10_183903_create_manufacturers.php b/database/migrations/2025_03_10_183903_create_manufacturers.php new file mode 100644 index 0000000..b99b372 --- /dev/null +++ b/database/migrations/2025_03_10_183903_create_manufacturers.php @@ -0,0 +1,32 @@ +id(); + $table->timestamps(); + $table->string('name')->required(); + $table->string('description')->nullable(); + $table->string('website')->nullable(); + $table->string('logo')->nullable(); + + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('manufacturers'); + } +};