- Add PostgreSQL persistence for dashboards module (was returning empty vec![])
- Tables: dashboards, dashboard_widgets, dashboard_data_sources, dashboard_filters,
dashboard_widget_data_sources, conversational_queries
- Full CRUD operations with spawn_blocking pattern
- Add PostgreSQL persistence for legal module (was using in-memory HashMap)
- Tables: legal_documents, legal_document_versions, cookie_consents, consent_history,
legal_acceptances, data_deletion_requests, data_export_requests
- GDPR-compliant consent tracking and document management
- Add PostgreSQL persistence for compliance module (was returning empty results)
- Tables: compliance_checks, compliance_issues, compliance_audit_log, compliance_evidence,
compliance_risk_assessments, compliance_risks, compliance_training_records,
compliance_access_reviews
- Support for GDPR, SOC2, ISO27001, HIPAA, PCI-DSS frameworks
- Add migration files for all new tables
- Update schema.rs with new table definitions and joinables
- Register new routes in main.rs
- Add recursion_limit = 512 for macro expansion
43 lines
1.6 KiB
SQL
43 lines
1.6 KiB
SQL
DROP INDEX IF EXISTS idx_people_time_off_status;
|
|
DROP INDEX IF EXISTS idx_people_time_off_dates;
|
|
DROP INDEX IF EXISTS idx_people_time_off_person;
|
|
DROP INDEX IF EXISTS idx_people_time_off_org_bot;
|
|
|
|
DROP INDEX IF EXISTS idx_people_person_skills_skill;
|
|
DROP INDEX IF EXISTS idx_people_person_skills_person;
|
|
|
|
DROP INDEX IF EXISTS idx_people_skills_category;
|
|
DROP INDEX IF EXISTS idx_people_skills_org_bot;
|
|
|
|
DROP INDEX IF EXISTS idx_people_departments_org_code;
|
|
DROP INDEX IF EXISTS idx_people_departments_head;
|
|
DROP INDEX IF EXISTS idx_people_departments_parent;
|
|
DROP INDEX IF EXISTS idx_people_departments_org_bot;
|
|
|
|
DROP INDEX IF EXISTS idx_people_org_chart_reports_to;
|
|
DROP INDEX IF EXISTS idx_people_org_chart_person;
|
|
DROP INDEX IF EXISTS idx_people_org_chart_org;
|
|
|
|
DROP INDEX IF EXISTS idx_people_team_members_person;
|
|
DROP INDEX IF EXISTS idx_people_team_members_team;
|
|
|
|
DROP INDEX IF EXISTS idx_people_teams_leader;
|
|
DROP INDEX IF EXISTS idx_people_teams_parent;
|
|
DROP INDEX IF EXISTS idx_people_teams_org_bot;
|
|
|
|
DROP INDEX IF EXISTS idx_people_org_email;
|
|
DROP INDEX IF EXISTS idx_people_user;
|
|
DROP INDEX IF EXISTS idx_people_active;
|
|
DROP INDEX IF EXISTS idx_people_manager;
|
|
DROP INDEX IF EXISTS idx_people_department;
|
|
DROP INDEX IF EXISTS idx_people_email;
|
|
DROP INDEX IF EXISTS idx_people_org_bot;
|
|
|
|
DROP TABLE IF EXISTS people_time_off;
|
|
DROP TABLE IF EXISTS people_person_skills;
|
|
DROP TABLE IF EXISTS people_skills;
|
|
DROP TABLE IF EXISTS people_departments;
|
|
DROP TABLE IF EXISTS people_org_chart;
|
|
DROP TABLE IF EXISTS people_team_members;
|
|
DROP TABLE IF EXISTS people_teams;
|
|
DROP TABLE IF EXISTS people;
|