feat: create designers table and update Park model to use Operator for ownership

This commit is contained in:
pacnpal
2025-03-23 15:13:03 -04:00
parent ea7af68d99
commit 8eac13d51b
11 changed files with 1312 additions and 623 deletions

View File

@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('designers', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('slug')->unique();
$table->text('bio')->default('');
$table->timestamps();
// Index for faster lookups
$table->index('slug');
});
}
public function down(): void
{
Schema::dropIfExists('designers');
}
};