Skip to content

files schema (encrypted-blob metadata) #225

Description

@codebestia

Create files table: id, ownerId → users.id, storagePath, size, mimeType, sha256 (of ciphertext), contentType (file/image/video/audio), createdAt, deletedAt. NO file key column — the key lives only inside the E2EE message envelope. Add relations + types.

Acceptance criteria:

  • File metadata stored; no key material in DB
  • sha256 of ciphertext stored for integrity
  • Soft-delete via deletedAt

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions