Data Model: hbf-media-manager
Domain objects used by this service. Full schemas:
docs/domain-model.md
Objects This Service Uses
| Object | Access | Key Fields Used |
|---|---|---|
| Organization | reads via hbf-core-api | id, displayName |
| AuditLog | writes via hbf-core-api | organizationId, description |
Local Entities
| Entity | Table | DB | Key Fields |
|---|---|---|---|
| Media | media | MySQL | id (auto), organization_id, fileName, url, mimeType, fileSize (bigint), createdAt, createdBy, publicToOrg (default true), createdByUserId |
Notes
- Manages uploaded media file metadata. Actual file storage is external (likely cloud object storage).
- Uses hbf-core-api
HBFCoreApiclient for Organization lookup and audit log creation. publicToOrgflag controls organization-wide visibility of uploaded files.fileSizeis stored as bigint to support large files.