Skip to content

feat: extend messages schema with contentType, senderDeviceId, sequen…#248

Merged
codebestia merged 3 commits into
codebestia:mainfrom
kodinaka30-ship-it:feat/extend-messages-schema
Jun 28, 2026
Merged

feat: extend messages schema with contentType, senderDeviceId, sequen…#248
codebestia merged 3 commits into
codebestia:mainfrom
kodinaka30-ship-it:feat/extend-messages-schema

Conversation

@kodinaka30-ship-it

@kodinaka30-ship-it kodinaka30-ship-it commented Jun 27, 2026

Copy link
Copy Markdown

Closes #172

  • Add contentType pgEnum (text/file/image/video/audio/system) with default 'text'
  • Add senderDeviceId uuid FK referencing user_devices.id
  • Add sequenceNumber bigint for per-conversation monotonic ordering
  • Add expiresAt timestamp for message expiration support
  • Create migration 0008_extend_messages.sql
  • Update messagesRelations to include senderDevice relationship
  • Add userDevicesRelations with messages relationship

Description

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Other

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally
  • My code follows the project's coding standards

…ceNumber, and expiresAt

- Add contentType pgEnum (text/file/image/video/audio/system) with default 'text'
- Add senderDeviceId uuid FK referencing user_devices.id
- Add sequenceNumber bigint for per-conversation monotonic ordering
- Add expiresAt timestamp for message expiration support
- Create migration 0008_extend_messages.sql
- Update messagesRelations to include senderDevice relationship
- Add userDevicesRelations with messages relationship
@kodinaka30-ship-it

Copy link
Copy Markdown
Author

Close#172

@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@kodinaka30-ship-it 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

@codebestia codebestia left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thank you for your contribution.

@codebestia codebestia left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the CI.

@codebestia codebestia left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thank you for your contribution.

@codebestia codebestia merged commit 93be056 into codebestia:main Jun 28, 2026
2 checks passed
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.

Add message content_type enum + typed payload columns

2 participants