Spaces:
Running
Running
| ```sql | |
| -- Insert the first organization | |
| INSERT INTO organizations (id, name, slug, is_active, subscription_tier, modules_enabled) | |
| VALUES ('00000000-0000-0000-0000-000000000000', 'VisionQuantech', 'vq', true, 'enterprise', '{ | |
| "crm": true, | |
| "hr": true, | |
| "finance": true, | |
| "inventory": true | |
| }'); | |
| -- Insert superadmin user (auth.users entry would be created via SignUp flow) | |
| -- This is the profile extension | |
| INSERT INTO user_profiles (id, email, full_name, role, organization_id, is_active) | |
| VALUES ( | |
| '11111111-1111-1111-1111-111111111111', | |
| 'superadmin@visionquantech.com', | |
| 'System Superadmin', | |
| 'superadmin', | |
| '00000000-0000-0000-0000-000000000000', | |
| true | |
| ); | |
| ``` | |
| π PART C β AUTH PAGES |