diff --git a/database/migrations/2024_11_18_191906_create_inventory_table.php b/database/migrations/2024_11_18_191906_create_inventory_table.php index 2fb5e66..efc8579 100644 --- a/database/migrations/2024_11_18_191906_create_inventory_table.php +++ b/database/migrations/2024_11_18_191906_create_inventory_table.php @@ -17,7 +17,7 @@ public function up(): void $table->foreignId('barbershop_id')->constrained('barbershop')->cascadeOnDelete(); $table->string('name', 100); $table->integer('quantity'); - $table->decimal('price', 10, 0); + $table->decimal('price', 10, 2); $table->text('description'); $table->timestamps(); $table->softDeletes(); @@ -29,6 +29,6 @@ public function up(): void */ public function down(): void { - Schema::dropIfExists('inventories'); + Schema::dropIfExists('inventory'); } };