-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase-blueprint.json
More file actions
100 lines (100 loc) · 2.77 KB
/
Copy pathfirebase-blueprint.json
File metadata and controls
100 lines (100 loc) · 2.77 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
{
"$schema": "https://firebase.google.com/schemas/blueprint/v1",
"entities": {
"notifications": {
"description": "System and user notifications pushed via Firebase",
"fields": {
"title": {
"type": "string",
"description": "Notification title"
},
"body": {
"type": "string",
"description": "Notification body message"
},
"type": {
"type": "string",
"description": "Type of notification (announcement, message, system, alert)"
},
"target": {
"type": "string",
"description": "Target audience (all or specific userId)"
},
"sender": {
"type": "string",
"description": "Sender name or role"
},
"createdAt": {
"type": "string",
"description": "Creation timestamp in ISO format"
},
"priority": {
"type": "string",
"description": "Priority level (normal, high)"
},
"readBy": {
"type": "array",
"description": "List of user IDs who have read this notification"
},
"actionUrl": {
"type": "string",
"description": "Optional action URL or trigger"
}
}
},
"user_sessions": {
"description": "Live user sessions tracking online presence and activity stats",
"fields": {
"userId": {
"type": "string",
"description": "Unique user session ID"
},
"userName": {
"type": "string",
"description": "User display name if entered"
},
"device": {
"type": "string",
"description": "Device and browser info"
},
"firstSeen": {
"type": "string",
"description": "First visit timestamp ISO"
},
"lastSeen": {
"type": "string",
"description": "Heartbeat last active timestamp ISO"
},
"messagesSent": {
"type": "number",
"description": "Total user messages count"
},
"isOnline": {
"type": "boolean",
"description": "Online indicator status"
}
}
},
"fcm_tokens": {
"description": "Registered FCM tokens for web push notifications",
"fields": {
"token": {
"type": "string",
"description": "FCM device registration token"
},
"userId": {
"type": "string",
"description": "Associated user ID or guest identifier"
},
"device": {
"type": "string",
"description": "User agent or device info"
},
"updatedAt": {
"type": "string",
"description": "Last updated timestamp"
}
}
}
}
}