id(); $table->foreignId('cat_id')->constrained()->onDelete('cascade'); // Relasi ke tabel cats $table->date('tanggal'); $table->string('keluhan'); $table->string('nama_obat'); $table->string('dosis'); $table->text('keterangan')->nullable(); $table->string('foto_bukti')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('treatments'); } };