Back to Data Models
Task
ImplementedUpdated 2024-03-15
The core unit of work — something a user needs to get done.
Open questions / notes
If dueDate is null the task has no deadline. aiPriority is null until the AI has processed the task.
Fields
11 fields defined
| Name | Type | Required | Unique | Description |
|---|---|---|---|---|
| id | uuid | Primary key | ||
| title | string | — | Short task title (max 255 chars) | |
| description | text | optional | — | Optional longer description |
| status | enum todoin_progressdonecancelled | — | Current state | |
| priority | enum lowmediumhighurgent | — | User-set priority | |
| aiPriority | enum lowmediumhighurgent | optional | — | AI-suggested priority — user can override |
| dueDate | date | optional | — | Optional deadline |
| creatorId | uuid | — | FK → User who created the task | |
| assigneeId | uuid | optional | — | FK → User assigned to complete it |
| workspaceId | uuid | — | FK → Workspace this task belongs to | |
| createdAt | datetime | — | Creation timestamp |
Relationships
How this model connects to others
Taskbelongs toUser
Creator of the task
Taskbelongs toWorkspace
Workspace the task lives in
Taskhas manyNotification
Deadline and mention notifications for this task
ER Diagram
Auto-generated from the fields and relationships above
Other Models
More models in this project