id(); $table->string('hashkey', 300)->unique(); $table->string('name'); $table->string('contact_number')->nullable(); $table->string('type', 50)->default('INTERNAL'); // INTERNAL, EXTERNAL $table->boolean('is_active')->default(true); $table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable(); $table->foreign('created_by')->references('id')->on('users')->onDelete('set null'); $table->foreign('updated_by')->references('id')->on('users')->onDelete('set null'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('couriers'); } };