increments('id'); $table->unsignedInteger('user_id'); $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->string('label')->nullable()->comment('Friendly name for this extension'); $table->string('sip_domain')->nullable(); $table->string('sip_port')->nullable()->default('5060'); $table->string('sip_extension')->nullable(); $table->string('sip_password')->nullable(); $table->enum('sip_protocol', ['sip', 'pjsip', 'wss'])->default('pjsip'); $table->boolean('sip_credentials_enabled')->default(false) ->comment('When true the system will serve these credentials to the user'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('user_extensions'); } }