Demo

FileEntity

Generic file attachments and uploads (media).

Fields

  • Table: files
  • id: number — primary key
  • filename: string — original name
  • mimeType: string
  • size: number — bytes
  • creatorId: number — uploader user id

Usage

Prefer FileService for uploads and storage. Join FileEntity when your domain row needs an attachment FK.