diff --git a/database/migrations/2025_03_25_032647_create_inventory_table.php b/database/migrations/2025_03_25_032647_create_inventory_table.php new file mode 100644 index 0000000..2f9b556 --- /dev/null +++ b/database/migrations/2025_03_25_032647_create_inventory_table.php @@ -0,0 +1,29 @@ +id(); // Auto-incrementing primary key + $table->string('name'); + $table->text('description')->nullable(); + $table->decimal('cost', 8, 2); // Max 999,999.99 + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('inventory'); + } +};