undefined-elegance / database /seed_superadmin.sql
shivay00001's picture
You are now the Chief System Architect for VisionQuantech Business Suite.
21bbe59 verified
raw
history blame contribute delete
701 Bytes
```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