Files
aggios.app/postgres/migrations/011_seed_default_plans.sql
Erik Silva 2a112f169d refactor: redesign planos interface with design system patterns
- Create CreatePlanModal component with Headless UI Dialog
- Implement dark mode support throughout plans UI
- Update plans/page.tsx with professional card layout
- Update plans/[id]/page.tsx with consistent styling
- Add proper spacing, typography, and color consistency
- Implement smooth animations and transitions
- Add success/error message feedback
- Improve form UX with better input styling
2025-12-13 19:26:38 -03:00

69 lines
1.8 KiB
SQL

-- Seed the default plans
INSERT INTO plans (id, name, slug, description, min_users, max_users, monthly_price, annual_price, features, differentiators, storage_gb, is_active, created_at, updated_at)
VALUES
(
gen_random_uuid(),
'Ignição',
'ignition',
'Ideal para pequenas agências iniciantes',
1,
30,
199.99,
1919.90,
ARRAY['CRM', 'ERP', 'Projetos', 'Helpdesk', 'Pagamentos', 'Contratos', 'Documentos'],
ARRAY[]::text[],
1,
true,
CURRENT_TIMESTAMP,
CURRENT_TIMESTAMP
),
(
gen_random_uuid(),
'Órbita',
'orbit',
'Para agências em crescimento',
31,
100,
399.99,
3839.90,
ARRAY['CRM', 'ERP', 'Projetos', 'Helpdesk', 'Pagamentos', 'Contratos', 'Documentos'],
ARRAY['Suporte prioritário'],
1,
true,
CURRENT_TIMESTAMP,
CURRENT_TIMESTAMP
),
(
gen_random_uuid(),
'Cosmos',
'cosmos',
'Para agências consolidadas',
101,
300,
799.99,
7679.90,
ARRAY['CRM', 'ERP', 'Projetos', 'Helpdesk', 'Pagamentos', 'Contratos', 'Documentos'],
ARRAY['Gerente de conta dedicado', 'API integrações'],
1,
true,
CURRENT_TIMESTAMP,
CURRENT_TIMESTAMP
),
(
gen_random_uuid(),
'Enterprise',
'enterprise',
'Solução customizada para grandes agências',
301,
-1,
NULL,
NULL,
ARRAY['CRM', 'ERP', 'Projetos', 'Helpdesk', 'Pagamentos', 'Contratos', 'Documentos'],
ARRAY['Armazenamento customizado', 'Treinamento personalizado'],
1,
true,
CURRENT_TIMESTAMP,
CURRENT_TIMESTAMP
)
ON CONFLICT DO NOTHING;