Resource Links Repository
Component Detail
Data Layer
low complexity
backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Backend data repository managing the resource_links table scoped to organization ID. Provides CRUD operations consumed by both the REST API (mobile reads) and the admin portal (admin writes). Enforces organization-level tenant isolation.
resource-links-repository
Responsibilities
- Persist and retrieve resource links scoped to organization ID
- Support create, read, update, and delete operations for admin portal management
- Return ordered list of active links for a given organization context
- Enforce tenant isolation so organizations only see their own resource links
Interfaces
findByOrganizationId(organizationId: string) → Promise<ResourceLink[]>
create(data: CreateResourceLinkDto) → Promise<ResourceLink>
update(id: string, data: UpdateResourceLinkDto) → Promise<ResourceLink>
delete(id: string) → Promise<void>
findById(id: string) → Promise<ResourceLink | null>