id(); $table->foreignIdFor(Directorat::class)->constrained()->onDelete('cascade'); $table->foreignIdFor(SubDirectorat::class)->constrained()->onDelete('cascade'); $table->foreignIdFor(Job::class)->constrained()->onDelete('cascade'); $table->foreignIdFor(SubJob::class)->constrained()->onDelete('cascade'); $table->foreignIdFor(SubSubJob::class)->constrained()->onDelete('cascade'); $table->foreignIdFor(SpecialCode::class)->nullable()->constrained()->onDelete('cascade'); $table->string('no_urut',3)->nullable(); $table->string('sequence',100)->nullable(); $table->string('kode', 15); $table->string('status')->nullable(); $table->string('keterangan')->nullable(); $table->enum('jenis_dokumen',['nasabah','non nasabah'])->nullable(); $table->timestamps(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('documents'); } };