diff --git a/database/migrations/2024_10_26_191136_create_wishes_table.php b/database/migrations/2024_10_26_191136_create_wishes_table.php new file mode 100644 index 0000000..ed8a53f --- /dev/null +++ b/database/migrations/2024_10_26_191136_create_wishes_table.php @@ -0,0 +1,32 @@ +id(); + $table->unsignedBigInteger('user_id'); + $table->foreign('user_id')->references('id')->on('users'); + $table->string('name', length: 256); + $table->double('price'); + $table->string('url', length: 256); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('wishes'); + } +};