integer('id', true); $table->integer('owner'); $table->integer('site'); $table->integer('field'); $table->string('name')->nullable(); $table->string('street', 100)->nullable(); $table->string('street2', 100)->nullable(); $table->string('postalCode', 50)->nullable(); $table->string('city', 50)->nullable(); $table->string('state', 50)->nullable(); $table->string('country')->nullable(); $table->decimal('latitude', 11, 9)->nullable(); $table->decimal('longitude', 12, 9)->nullable(); $table->dateTime('dateCreated'); $table->dateTime('dateUpdated'); $table->char('uid', 36)->default('0'); $table->unique(['owner', 'site', 'field']); }); } public function down(): void { Schema::dropIfExists('easyaddressfield'); } };