Skip to main content

Note

The Note model represents notes created by users within worlds. Notes can be used for strategies, reminders, or any information relevant to a world.

Fields

FieldTypeAttributesDescription
idString@id, @default(cuid())Unique note ID
titleStringTitle of the note
contentStringContent of the note
tagStringTag or category for the note
authorIdStringID of the user who authored the note
authorUser@relationThe user who authored the note
worldIdStringID of the world the note belongs to
worldWorld@relationThe world associated with the note
createdAtDateTime@default(now())Timestamp when the note was created

Relationships

  • Note belongs to a User (authorId).
  • Note belongs to a World (worldId).

Example Record

{
"id": "note1",
"title": "Strategy",
"content": "Focus on the east gate first.",
"tag": "battle",
"authorId": "user123",
"worldId": "world123",
"createdAt": "2025-09-01T18:00:00.000Z",
"author": {
"id": "user123",
"username": "player1"
},
"world": {
"id": "world123",
"name": "Adventure Realm"
}
}