Skip to content

Implement the file schema#318

Merged
codebestia merged 3 commits into
codebestia:mainfrom
CollinsKRO:schema
Jul 3, 2026
Merged

Implement the file schema#318
codebestia merged 3 commits into
codebestia:mainfrom
CollinsKRO:schema

Conversation

@CollinsKRO

Copy link
Copy Markdown
Contributor

closes #225

@codebestia codebestia marked this pull request as draft July 1, 2026 03:22
@codebestia

Copy link
Copy Markdown
Owner

Hello @CollinsKRO
Please ensure to drop a better PR title and description with the proper implementation.

- New file_content_type enum (file, image, video, audio)
- files table with ownerId FK, storagePath, size, mimeType, sha256 (of ciphertext), contentType, createdAt, deletedAt (soft-delete)
- No key material stored — key lives only in the E2EE message envelope
- Relations: user has many files, file belongs to one user
- Inferred File / NewFile types
@drips-wave

drips-wave Bot commented Jul 2, 2026

Copy link
Copy Markdown

@CollinsKRO Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@CollinsKRO CollinsKRO marked this pull request as ready for review July 2, 2026 14:32
@codebestia codebestia changed the title . Implement the file schema Jul 3, 2026
@codebestia codebestia merged commit 102cc3a into codebestia:main Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

files schema (encrypted-blob metadata)

2 participants