diff --git a/database/migrations/2022_06_28_065137_create_address.php b/database/migrations/2022_06_28_065137_create_address.php new file mode 100644 index 00000000..d55abcf6 --- /dev/null +++ b/database/migrations/2022_06_28_065137_create_address.php @@ -0,0 +1,42 @@ +id(); + $table->unsignedInteger('customer_id'); + $table->string('name'); + $table->string('phone'); + $table->unsignedInteger('country_id'); + $table->unsignedInteger('state_id'); + $table->string('state'); + $table->unsignedInteger('city_id'); + $table->string('city'); + $table->string('zipcode'); + $table->string('address_1'); + $table->string('address_2'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('address'); + } +}