Repository navigation
Design proposal for forum feature
The application is structured around location-based hubs.
- Hubs are created by the platform, not users.
- Users belong to exactly one hub. (They choose when they sign up.)
- Users interact only with posts inside their hub. (We may add one global forum for all the users.)
Each hub currently contains two forums: - standard - urgent (standard is like general chatting, the urgent one is not for the help requests, but urgent situations that need to be shared etc. and it will trigger a notification)
The forum for help requests will be added but that will have a different structure, we can handle that after we finish this.
Forums are categories, not separate entities.
User → belongs to → Hub
Hub → contains → Posts
Post → has → Comments
Post → has → Votes
Post → has → Reports
Represents a user of the application.
| Field | Description |
|---|---|
| id | Unique identifier |
| role |
user, admin, expert etc |
| username | Unique username |
| displayName | Public display name |
| avatarUrl | Profile image URL |
| hubId | Hub the user belongs to |
| createdAt | Account creation timestamp |
Represents a location-based community hub.
| Field | Description |
|---|---|
| id | Unique hub identifier |
| name | Hub name |
| city | City name |
| description | Optional description shown on the hub page |
| createdAt | Creation timestamp |
Forums are logical categories used to organize posts inside a hub.
Possible values:
standardurgent
Used for general communication within the hub.
Examples:
- Information sharing
- Questions
- Local updates
Used for time-sensitive alerts and warnings.
Examples:
- Safety alerts
- Emergency situations
- Immediate warnings
Urgent posts trigger push notifications to users in the same hub.
Represents a user-created post within a hub forum.
| Field | Description |
|---|---|
| id | Unique identifier |
| hubId | Hub the post belongs to |
| forumType |
standard or urgent
|
| authorId | User who created the post |
| title | Post title |
| content | Main text content |
| imageUrls | List of image URLs attached to the post |
| upvoteCount | Total number of upvotes |
| downvoteCount | Total number of downvotes |
| commentCount | Number of comments |
| reportCount | Number of reports |
| status | Moderation status |
| createdAt | Post creation timestamp |
| updatedAt | Last edit timestamp |
-
active— visible to users -
hidden— hidden due to reports -
removed— removed by moderators
Represents a user reply to a post.
| Field | Description |
|---|---|
| id | Unique identifier |
| postId | Post the comment belongs to |
| authorId | User who created the comment |
| content | Comment text |
| createdAt | Comment creation timestamp |
Comments are currently flat (no nested replies).
Nested replies may be implemented in a later milestone.
Represents an upvote or downvote on a post.
| Field | Description |
|---|---|
| postId | Post being voted on |
| userId | User who voted |
| voteType |
up or down
|
- A user can vote once per post
- Changing a vote replaces the previous vote
Represents a report submitted by a user for moderation.
| Field | Description |
|---|---|
| id | Unique identifier |
| postId | Reported post |
| reporterId | User who submitted the report |
| reason | Reason for reporting |
| createdAt | Report creation timestamp |
spammisinformationabuseirrelevant
Images are uploaded to DB separately before creating posts. The upload returns a URL which is attached to posts. This avoids large payloads.
Urgent posts trigger push notifications to users in the same hub. Only the post author should not receive the notif.
Team Members
- Weekly Meeting 1 (15.02.2026)
- Weekly Meeting 2 (23.02.2026)
- Weekly Meeting 3 (03.03.2026)
- Weekly Meeting 4 (11.03.2026)
- Weekly Meeting 5 (16.03.2026)
- Weekly Meeting 6 (23.03.2026)
- Weekly Meeting 7 (30.03.2026)
- Weekly Meeting 8 (06.04.2026)
- Weekly Meeting 9 (15.04.2026)
- Weekly Meeting 10 (29.04.2026)
- Weekly Meeting 11 (06.05.2026)
- Weekly Meeting 12 (11.05.2026)
- Lab 1 Report (12.02.2026)
- Lab 2 Report (19.02.2026)
- Lab 3 Report (26.02.2026)
- Lab 4 Report (05.03.2026)
- Lab 5 Report (12.03.2026)
- Lab 6 Report (26.03.2026)
- Lab 7 Report (02.04.2026)
- Lab 8 Report (16.04.2026)
- Lab 9 Report (30.04.2026)
- Lab 10 Report (07.05.2026)