id(); $table->foreignId('team_id')->nullable()->constrained()->nullOnDelete(); $table->string('type', 10); $table->string('category', 30); $table->string('title', 150); $table->integer('amount'); $table->date('date'); $table->text('notes')->nullable(); $table->foreignId('created_by')->constrained('users'); $table->timestamps(); $table->index(['team_id', 'date']); $table->index(['type', 'date']); }); } public function down(): void { Schema::dropIfExists('finances'); } };