feat(tools): add maintenance and meal planning tools with CRUD operations

- Implement maintenance tool for adding, logging, and retrieving tasks
- Create meals tool for managing recipes, meal plans, and shopping lists
- Introduce reparse metadata tool for updating thought metadata
- Add household knowledge, home maintenance, family calendar, meal planning, and professional CRM database migrations
- Grant necessary permissions for new database tables
This commit is contained in:
2026-03-26 23:29:03 +02:00
parent b74d63c543
commit 0eb6ac7ee5
25 changed files with 2910 additions and 10 deletions

View File

@@ -0,0 +1,31 @@
-- Grant these permissions to the database role used by the application.
-- Replace amcs with the actual role in your deployment before applying.
GRANT ALL ON TABLE public.thoughts TO amcs;
GRANT ALL ON TABLE public.projects TO amcs;
GRANT ALL ON TABLE public.thought_links TO amcs;
GRANT ALL ON TABLE public.embeddings TO amcs;
-- Household Knowledge (011)
GRANT ALL ON TABLE public.household_items TO amcs;
GRANT ALL ON TABLE public.household_vendors TO amcs;
-- Home Maintenance (012)
GRANT ALL ON TABLE public.maintenance_tasks TO amcs;
GRANT ALL ON TABLE public.maintenance_logs TO amcs;
-- Family Calendar (013)
GRANT ALL ON TABLE public.family_members TO amcs;
GRANT ALL ON TABLE public.activities TO amcs;
GRANT ALL ON TABLE public.important_dates TO amcs;
-- Meal Planning (014)
GRANT ALL ON TABLE public.recipes TO amcs;
GRANT ALL ON TABLE public.meal_plans TO amcs;
GRANT ALL ON TABLE public.shopping_lists TO amcs;
-- Professional CRM (015)
GRANT ALL ON TABLE public.professional_contacts TO amcs;
GRANT ALL ON TABLE public.contact_interactions TO amcs;
GRANT ALL ON TABLE public.opportunities TO amcs;
GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public TO amcs;