- 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
31 lines
1.2 KiB
SQL
31 lines
1.2 KiB
SQL
-- 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; |