id(); $table->foreignId('user_id')->constrained()->onDelete('cascade'); $table->foreignId('account_id')->constrained()->onDelete('cascade'); $table->foreignId('category_id')->constrained()->onDelete('cascade'); $table->text('description'); $table->string('description_iv', 16); $table->date('transaction_date'); $table->decimal('amount', 15, 2); $table->string('currency_code', 3); $table->text('notes')->nullable(); $table->string('notes_iv', 16)->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('transactions'); } };