-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase-blueprint.json
More file actions
56 lines (56 loc) · 2.11 KB
/
Copy pathfirebase-blueprint.json
File metadata and controls
56 lines (56 loc) · 2.11 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
{
"entities": {
"Note": {
"title": "Note",
"description": "A note or task item in the Keep clone.",
"type": "object",
"properties": {
"userId": { "type": "string", "description": "The UID of the owner." },
"title": { "type": "string", "description": "The title of the note." },
"content": { "type": "string", "description": "The content or body of the note." },
"color": { "type": "string", "description": "The background color of the note." },
"isPinned": { "type": "boolean", "description": "Whether the note is pinned." },
"isArchived": { "type": "boolean", "description": "Whether the note is archived." },
"isTrashed": { "type": "boolean", "description": "Whether the note is in the trash." },
"type": { "type": "string", "enum": ["note", "todo", "event"], "description": "The type of item." },
"tasks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"text": { "type": "string" },
"completed": { "type": "boolean" }
}
},
"description": "List of tasks for todo type."
},
"dueDate": { "type": "string", "format": "date-time", "description": "Optional due date or event date." },
"createdAt": { "type": "string", "format": "date-time" },
"updatedAt": { "type": "string", "format": "date-time" }
},
"required": ["userId", "title", "type", "createdAt"]
},
"UserProfile": {
"title": "User Profile",
"description": "Basic user information.",
"type": "object",
"properties": {
"displayName": { "type": "string" },
"email": { "type": "string" },
"photoURL": { "type": "string" },
"lastLogin": { "type": "string", "format": "date-time" }
},
"required": ["email"]
}
},
"firestore": {
"/notes/{noteId}": {
"schema": "Note",
"description": "Collection of all notes and tasks."
},
"/users/{userId}": {
"schema": "UserProfile",
"description": "User profile information."
}
}
}