Engage with notes through threaded comments and community upvoting
Noteverse includes social engagement features that enable discussions and community feedback through comments and upvotes. Foster collaboration and recognize valuable content.
Note: "Introduction to Real-time Collaboration"├─ Comment #1 by Alice: "Great explanation of Socket.IO!"│ ├─ Reply #2 by Bob: "Agreed! The cursor tracking is impressive."│ │ └─ Reply #5 by Alice: "Thanks Bob! I also like the position updates."│ └─ Reply #3 by Carol: "How does it handle connection drops?"└─ Comment #4 by Dave: "Would love to see more examples."
model User { id Int @id @default(autoincrement()) email String @unique username String // ... other fields comments Comment[] @relation("UserComments") // ...}
This relationship allows you to:
Display the comment author’s name and profile
Query all comments by a specific user
Control edit/delete permissions based on authorship
Notes can be upvoted by users to highlight valuable content:
schema.prisma
model Note { id Int @id @default(autoincrement()) title String // ... other fields likes User[] @relation("LikesOnNotes") // ...}model User { id Int @id @default(autoincrement()) // ... other fields likedNotes Note[] @relation("LikesOnNotes") // ...}
The many-to-many relationship between Note and User through the LikesOnNotes relation tracks which users have upvoted which notes.
model Note { id Int @id @default(autoincrement()) title String views Int @default(0) // ... comments Comment[] @relation("CommentsOnNote") likes User[] @relation("LikesOnNotes") favorites User[] @relation("FavoritesOnNotes")}
Use comments to provide feedback on shared documents:
Marketing Plan Q1 2026├─ Comment by Manager: "Great strategy! Consider adding social media metrics."│ └─ Reply by Author: "Good idea, I'll add a section on KPIs."└─ Comment by Designer: "I can create visuals for the presentation slides."
Note: "API Design Best Practices"├─ Comment: "What about GraphQL vs REST?"│ ├─ Reply: "GraphQL is better for complex queries..."│ │ └─ Reply: "But REST is simpler for basic CRUD..."│ └─ Reply: "We use both depending on the use case."└─ Comment: "Consider adding rate limiting examples."