-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase-blueprint.json
More file actions
117 lines (117 loc) · 3.85 KB
/
Copy pathfirebase-blueprint.json
File metadata and controls
117 lines (117 loc) · 3.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"entities": {
"User": {
"title": "User",
"description": "User profile with basic info",
"type": "object",
"properties": {
"uid": { "type": "string" },
"email": { "type": "string" },
"displayName": { "type": "string" },
"photoURL": { "type": "string" },
"createdAt": { "type": "string", "format": "date-time" }
},
"required": ["uid", "email"]
},
"Workspace": {
"title": "Workspace",
"description": "A workspace container for folders and projects",
"type": "object",
"properties": {
"id": { "type": "string" },
"name": { "type": "string" },
"ownerId": { "type": "string" },
"icon": { "type": "string" },
"gradient": { "type": "string" },
"createdAt": { "type": "string", "format": "date-time" }
},
"required": ["id", "name", "ownerId"]
},
"Folder": {
"title": "Folder",
"description": "A folder or project inside a workspace",
"type": "object",
"properties": {
"id": { "type": "string" },
"workspaceId": { "type": "string" },
"name": { "type": "string" },
"ownerId": { "type": "string" },
"icon": { "type": "string" },
"color": { "type": "string" },
"createdAt": { "type": "string", "format": "date-time" }
},
"required": ["id", "workspaceId", "name", "ownerId"]
},
"Task": {
"title": "Task",
"description": "A productivity task unit",
"type": "object",
"properties": {
"id": { "type": "string" },
"folderId": { "type": "string" },
"workspaceId": { "type": "string" },
"ownerId": { "type": "string" },
"title": { "type": "string" },
"description": { "type": "string" },
"aiSummary": { "type": "string" },
"status": { "type": "string", "enum": ["todo", "in-progress", "completed", "archived"] },
"priority": { "type": "string", "enum": ["low", "medium", "high", "critical"] },
"dueDate": { "type": "string", "format": "date-time" },
"progress": { "type": "number" },
"tags": { "type": "array", "items": { "type": "string" } },
"subtasks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": { "type": "string" },
"completed": { "type": "boolean" }
}
}
},
"aiExecutionPlan": { "type": "string" },
"createdAt": { "type": "string", "format": "date-time" },
"updatedAt": { "type": "string", "format": "date-time" },
"isDeleted": { "type": "boolean" }
},
"required": ["id", "title", "ownerId", "status"]
},
"ActivityLog": {
"title": "ActivityLog",
"description": "Tracks all activities for history",
"type": "object",
"properties": {
"id": { "type": "string" },
"userId": { "type": "string" },
"action": { "type": "string" },
"targetId": { "type": "string" },
"targetType": { "type": "string" },
"details": { "type": "string" },
"timestamp": { "type": "string", "format": "date-time" }
},
"required": ["id", "userId", "action"]
}
},
"firestore": {
"/users/{userId}": {
"schema": "User",
"description": "User profiles"
},
"/workspaces/{workspaceId}": {
"schema": "Workspace",
"description": "Workspaces"
},
"/workspaces/{workspaceId}/folders/{folderId}": {
"schema": "Folder",
"description": "Folders/Projects within a workspace"
},
"/workspaces/{workspaceId}/tasks/{taskId}": {
"schema": "Task",
"description": "Tasks associated with a workspace"
},
"/users/{userId}/activity_logs/{logId}": {
"schema": "ActivityLog",
"description": "User activity logs"
}
}
}