id(); $table->foreignIdFor(Directorat::class)->constrained()->onDelete('cascade'); $table->foreignIdFor(SubDirectorat::class)->constrained()->onDelete('cascade'); $table->string('kode', 15); $table->string('sequence', 3)->nullable(); $table->string('name', 100)->nullable(); $table->string('status')->default(0)->nullable(); $table->timestamps(); $table->timestamp('approved_at')->nullable(); $table->softDeletes(); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable(); $table->unsignedBigInteger('approved_by')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('cardboards'); } };