Boss
The Boss model represents a boss entity. Bosses are linked to worlds and their progress is tracked via the WorldBossProgress model.
Fields
| Field | Type | Attributes | Description |
|---|---|---|---|
| id | String | @id, @default(cuid()) | Unique boss ID |
| name | String | Name of the boss | |
| health | String | Health value or description | |
| stage | String | Stage or phase of the boss | |
| worldProgress | WorldBossProgress[] | @relation | Progress records for this boss in worlds |
Relationships
- Boss has many
WorldBossProgressrecords (one per world). - Linked to worlds through
WorldBossProgress.
Example Record
{
"id": "boss1",
"name": "Dragon Lord",
"health": "5000",
"stage": "Final",
"worldProgress": [
{
"id": "progress1",
"worldId": "world123",
"killed": false
}
]
}