- ShareDialog: expiry selector (7/14/30/60/90 days, default 14), shows expiry date after generation, "Als PDF öffnen / drucken" button - WeightChart extracted to standalone component (WeightChart.tsx) so it can be shared between HealthDashboard and the public health card page - Health card page: renders WeightChart when 2+ weight entries exist - AutoPrint client component: auto-triggers window.print() when card is opened with ?print=1 (600ms delay for render to settle) - README: Phase 6 + Phase 7 marked complete with full feature summaries; project structure and router list updated Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
1.1 KiB
SQL
24 lines
1.1 KiB
SQL
-- Enable RLS on all application tables.
|
|
--
|
|
-- All data access in this project goes through Prisma via a direct Postgres
|
|
-- connection (service_role), which bypasses RLS. We do NOT use Supabase
|
|
-- PostgREST for any data queries. Enabling RLS with zero policies closes the
|
|
-- PostgREST surface entirely: anon/authenticated roles cannot read or write
|
|
-- any table through the Supabase REST or Realtime APIs.
|
|
--
|
|
-- Prisma is unaffected — direct connections with service_role skip RLS.
|
|
-- Supabase Storage is a separate subsystem and is also unaffected.
|
|
|
|
ALTER TABLE "Owner" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "Species" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "Breed" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "Pet" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "Post" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "PostImage" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "Milestone" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "Story" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "StoryView" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "Follow" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "Block" ENABLE ROW LEVEL SECURITY;
|
|
ALTER TABLE "Report" ENABLE ROW LEVEL SECURITY;
|