some progress

This commit is contained in:
2025-06-13 23:06:13 +03:00
parent 621398978a
commit 71dd328431
25 changed files with 594 additions and 126 deletions
@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('ratings', function (Blueprint $table) {
$table->string('platform');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('ratings', function (Blueprint $table) {
$table->dropColumn('platform');
});
}
};
@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('reviews', function (Blueprint $table) {
$table->string('platform');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('reviews', function (Blueprint $table) {
$table->dropColumn('platform');
});
}
};
@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('wishlists', function (Blueprint $table) {
$table->id();
$table->bigInteger('user_id');
$table->string('name');
$table->text('description')->nullable();
$table->enum('visibility', ['public', 'private', 'friends_only'])->default('public');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('wishlists');
}
};