id(); $table->foreignId('user_id')->constrained()->cascadeOnDelete(); $table->foreignId('employee_id')->constrained('users')->cascadeOnDelete(); $table->foreignId('barbershop_id')->constrained('barbershop')->cascadeOnDelete(); $table->decimal('amount', 10, 2)->comment('Base salary'); $table->decimal('incentive', 10, 2); $table->decimal('cut', 10, 2); $table->decimal('total', 10, 2); $table->text('description'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('payrolls'); } };