Entity-Relationship Diagram

Complete Appwrite database schema — 60+ collections across 10 domains with all relationships, keys, and attributes

60+
Collections
10
Domains
3
Storage Buckets
200+
Attributes
PKPrimary Key
FKForeign Key
IDXIndexed
1:NHas Many
N:1Belongs To
1:1Has One
Core PM7 Collections
WORKSPACES
Top-level containers
PK$idstring
·namestring
IDXuserIdstring
·imageUrlstring?
·inviteCodestring
FKorganizationIdstring?
1:NMEMBERS1:NPROJECTS1:NSPACESN:1ORGANIZATIONS
MEMBERS
Workspace membership
PK$idstring
FKworkspaceIdstring
FKuserIdstring
IDXroleenum
·statusstring
N:1WORKSPACESN:1Users (Appwrite)
PROJECTS
Projects within workspaces
PK$idstring
FKworkspaceIdstring
FKspaceIdstring?
·namestring
·imageUrlstring?
FKworkflowIdstring?
N:1WORKSPACESN:1SPACES1:NTASKS1:NSPRINTS1:1WORKFLOWS
TASKS
Work items in projects
PK$idstring
FKworkspaceIdstring
FKprojectIdstring
·namestring
IDXstatusenum
IDXassigneeIdstring?
·priorityenum?
·dueDatedatetime?
N:1PROJECTSN:1SPRINTS1:NCOMMENTS1:NATTACHMENTS1:NTIME_LOGS
COMMENTS
Task comments
PK$idstring
FKtaskIdstring
FKuserIdstring
·contentstring
FKparentIdstring?
N:1TASKS1:NCOMMENTS (replies)
ATTACHMENTS
File attachment metadata
PK$idstring
FKtaskIdstring
·fileIdstring
·namestring
·sizenumber
·mimeTypestring
N:1TASKS1:1ATTACHMENTS_BUCKET
TIME_LOGS
Time tracking entries
PK$idstring
FKtaskIdstring
FKmemberIdstring
·durationnumber
·datedatetime
N:1TASKSN:1MEMBERS