id(); $table->uuid('uuid')->unique(); $table->foreignId('stream_id')->nullable()->constrained()->onDelete('set null'); $table->unsignedBigInteger('amount'); $table->date('date'); $table->text('description')->nullable(); $table->boolean('is_projected')->default(true); $table->timestamps(); $table->index(['stream_id', 'date']); $table->index('is_projected'); }); } public function down(): void { Schema::dropIfExists('inflows'); } };