From 915f84022a4d84ec96c7604c12735349bfedb328 Mon Sep 17 00:00:00 2001 From: Dhaverd Date: Sun, 27 Oct 2024 03:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB=20=D0=BC?= =?UTF-8?q?=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8=D1=8E=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D1=83=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=B6=D0=B5=D0=BB=D0=B0=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2024_10_26_191136_create_wishes_table.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2024_10_26_191136_create_wishes_table.php 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'); + } +};