Files
petfeed/prisma/enable_rls_story_editor.sql
adminandClaude Opus 5.5 8c640e2837 feat(stories): Server fuer Story-Editor (Overlays, Markierungen, Text-Storys, GIFs)
- Schema: Story.overlays/background/mediaWidth/mediaHeight, StoryMediaType.TEXT,
  StoryMention, Notification.storyId, STORY_MENTION/COMMENT/REACTION
- Markieren nach Pet.followerVisibility (Entscheidung 04.10.), Block-Pruefung,
  eigene Tiere immer erlaubt; unzulaessige Markierungen werden verworfen
- stories.createText, searchMentionable, searchGifs (GIPHY-Proxy, rating g,
  Redis-Cache), featureFlags; Kommentar/Pfote benachrichtigen den Besitzer
- Video-Storys benachrichtigen Markierte erst bei READY (Mux-Webhook)
- Notschalter Story-Editor im Admin-Dashboard (Redis, ModerationLog)
- RLS-Skript fuer StoryMention

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 16:27:34 +02:00

6 lines
316 B
SQL

-- Story-Editor (feature/story-editor): neue Tabelle für den PostgREST-Zugriff
-- sperren, wie alle anderen Tabellen (siehe enable_rls.sql). Die App greift
-- ausschließlich über Prisma (Service-Rolle) zu.
-- Nach dem prisma db push einmal ausführen.
ALTER TABLE public."StoryMention" ENABLE ROW LEVEL SECURITY;