id(); $table->foreignId('directorat_id')->constrained('directorats')->onDelete('cascade'); $table->foreignId('sub_directorat_id')->constrained('sub_directorats')->onDelete('cascade'); $table->string('kode', 2); $table->string('name', 50); $table->string('status', 1)->default(0); $table->timestamps(); $table->timestamp('authorized_at')->nullable(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); $table->unsignedBigInteger('authorized_by')->nullable(); }); } /** * Reverse the migrations. */ public function down() : void { Schema::dropIfExists('jobs'); } };