Infrastructure medium complexity backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Supabase Storage bucket infrastructure for activity documents with RLS policies restricting access to members of the owning organization. Configured with the {org_id}/{activity_id}/{filename} path convention and a paired thumbnail bucket. Includes the Edge Function for server-side thumbnail generation at upload time.

Feature: Document Attachment to Activities

file-storage-backend

Responsibilities

  • Provide Supabase Storage bucket configured for activity document objects
  • Enforce RLS bucket policies limiting access to organization members
  • Host Supabase Edge Function for thumbnail generation at upload time
  • Store resized thumbnail objects in a dedicated thumbnail storage path
  • Support signed URL generation with configurable TTLs

Interfaces

uploadObject(path: string, bytes: Uint8List, contentType: string): Future<void>
downloadObject(path: string): Future<Uint8List>
deleteObject(path: string): Future<void>
createSignedUrl(path: string, expiresIn: int): Future<String>
listObjects(prefix: string): Future<List<FileObject>>
invokeThumbnailEdgeFunction(payload: Map): Future<void>

Related Data Entities (1)

Data entities managed by this component