refactor: align codebase with EventCrew domain and trim legacy band stack
- Update API: events, users, policies, routes, resources, migrations - Remove deprecated models/resources (customers, setlists, invitations, etc.) - Refresh admin app and docs; remove apps/band Made-with: Cursor
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Organisation;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
@@ -12,44 +13,23 @@ class DatabaseSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
// Create admin user
|
||||
User::create([
|
||||
'name' => 'Admin User',
|
||||
'email' => 'admin@bandmanagement.nl',
|
||||
$this->call(RoleSeeder::class);
|
||||
|
||||
$admin = User::create([
|
||||
'name' => 'Super Admin',
|
||||
'email' => 'admin@eventcrew.nl',
|
||||
'password' => Hash::make('password'),
|
||||
'type' => 'member',
|
||||
'role' => 'admin',
|
||||
'status' => 'active',
|
||||
]);
|
||||
|
||||
// Create booking agent
|
||||
User::create([
|
||||
'name' => 'Booking Agent',
|
||||
'email' => 'booking@bandmanagement.nl',
|
||||
'password' => Hash::make('password'),
|
||||
'type' => 'member',
|
||||
'role' => 'booking_agent',
|
||||
'status' => 'active',
|
||||
$admin->assignRole('super_admin');
|
||||
|
||||
$organisation = Organisation::query()->create([
|
||||
'name' => 'Demo Organisation',
|
||||
'slug' => 'demo',
|
||||
'billing_status' => 'active',
|
||||
'settings' => [],
|
||||
]);
|
||||
|
||||
// Create music manager
|
||||
User::create([
|
||||
'name' => 'Music Manager',
|
||||
'email' => 'music@bandmanagement.nl',
|
||||
'password' => Hash::make('password'),
|
||||
'type' => 'member',
|
||||
'role' => 'music_manager',
|
||||
'status' => 'active',
|
||||
]);
|
||||
|
||||
// Create regular member
|
||||
User::create([
|
||||
'name' => 'Band Member',
|
||||
'email' => 'member@bandmanagement.nl',
|
||||
'password' => Hash::make('password'),
|
||||
'type' => 'member',
|
||||
'role' => 'member',
|
||||
'status' => 'active',
|
||||
]);
|
||||
$admin->organisations()->attach($organisation->id, ['role' => 'org_admin']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user