chore: align migrations, docs, and frontends with crewli.app setup
- Replace dated migrations with ordered 2026_04_07_* chain; fold users update into base migration - Update OrganisationScope, AppServiceProvider, seeders, api routes, and .env.example - Refresh Cursor rules, CLAUDE.md, Makefile, README, and docs (API, SCHEMA, SETUP) - Adjust admin/app/portal HTML, packages, api-client, events types, and theme config - Update docker-compose and VS Code settings; remove stray Office lock files from resources Made-with: Cursor
This commit is contained in:
@@ -14,19 +14,14 @@ return new class extends Migration
|
||||
$table->ulid('id')->primary();
|
||||
$table->string('name');
|
||||
$table->string('email')->unique();
|
||||
$table->string('phone', 20)->nullable();
|
||||
$table->text('bio')->nullable();
|
||||
$table->json('instruments')->nullable();
|
||||
$table->string('avatar_path')->nullable();
|
||||
$table->enum('type', ['member', 'customer'])->default('member');
|
||||
$table->enum('role', ['admin', 'booking_agent', 'music_manager', 'member'])->nullable();
|
||||
$table->enum('status', ['active', 'inactive'])->default('active');
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->string('password');
|
||||
$table->string('timezone')->default('Europe/Amsterdam');
|
||||
$table->string('locale')->default('nl');
|
||||
$table->string('avatar')->nullable();
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['type', 'status']);
|
||||
$table->softDeletes();
|
||||
});
|
||||
|
||||
Schema::create('password_reset_tokens', function (Blueprint $table) {
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
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::table('users', function (Blueprint $table) {
|
||||
// Remove old band-management columns
|
||||
$table->dropIndex(['type', 'status']);
|
||||
$table->dropColumn(['phone', 'bio', 'instruments', 'avatar_path', 'type', 'role', 'status']);
|
||||
});
|
||||
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
// Add EventCrew columns per SCHEMA.md
|
||||
$table->string('timezone')->default('Europe/Amsterdam')->after('password');
|
||||
$table->string('locale')->default('nl')->after('timezone');
|
||||
$table->string('avatar')->nullable()->after('locale');
|
||||
$table->softDeletes();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropSoftDeletes();
|
||||
$table->dropColumn(['timezone', 'locale', 'avatar']);
|
||||
});
|
||||
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->string('phone', 20)->nullable();
|
||||
$table->text('bio')->nullable();
|
||||
$table->json('instruments')->nullable();
|
||||
$table->string('avatar_path')->nullable();
|
||||
$table->enum('type', ['member', 'customer'])->default('member');
|
||||
$table->enum('role', ['admin', 'booking_agent', 'music_manager', 'member'])->nullable();
|
||||
$table->enum('status', ['active', 'inactive'])->default('active');
|
||||
$table->index(['type', 'status']);
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
Reference in New Issue
Block a user