| 1234567891011121314151617181920212223242526272829303132333435363738394041 | 
							- <?php
 - 
 - use Illuminate\Database\Migrations\Migration;
 - use Illuminate\Database\Schema\Blueprint;
 - use Illuminate\Support\Facades\Schema;
 - 
 - return new class extends Migration
 - {
 -     /**
 -      * Run the migrations.
 -      */
 -     public function up(): void
 -     {
 -         Schema::create('adjustments', function (Blueprint $table) {
 -             $table->id();
 -             $table->foreignId('company_id')->constrained()->cascadeOnDelete();
 -             $table->foreignId('account_id')->nullable()->constrained('accounts')->nullOnDelete();
 -             $table->string('name')->nullable();
 -             $table->text('description')->nullable();
 -             $table->string('category')->default('tax');
 -             $table->string('type')->default('sales');
 -             $table->boolean('recoverable')->default(false);
 -             $table->bigInteger('rate')->default(0);
 -             $table->string('computation')->default('percentage');
 -             $table->string('scope')->nullable();
 -             $table->dateTime('start_date')->nullable();
 -             $table->dateTime('end_date')->nullable();
 -             $table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete();
 -             $table->foreignId('updated_by')->nullable()->constrained('users')->nullOnDelete();
 -             $table->timestamps();
 -         });
 -     }
 - 
 -     /**
 -      * Reverse the migrations.
 -      */
 -     public function down(): void
 -     {
 -         Schema::dropIfExists('adjustments');
 -     }
 - };
 
 
  |