-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase-blueprint.json
More file actions
116 lines (116 loc) · 4.46 KB
/
Copy pathfirebase-blueprint.json
File metadata and controls
116 lines (116 loc) · 4.46 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
{
"entities": {
"users": {
"title": "User Profile",
"description": "Stores user profile information and wallet address.",
"type": "object",
"properties": {
"uid": { "type": "string" },
"walletAddress": { "type": "string" },
"username": { "type": "string" },
"avatar": { "type": "string" },
"createdAt": { "type": "string", "format": "date-time" }
},
"required": ["uid", "walletAddress", "username"]
},
"leaderboard": {
"title": "Leaderboard Entry",
"description": "Stores top traders' performance data.",
"type": "object",
"properties": {
"uid": { "type": "string" },
"username": { "type": "string" },
"avatar": { "type": "string" },
"totalBalance": { "type": "number" },
"totalProfit": { "type": "number" },
"updatedAt": { "type": "string", "format": "date-time" }
},
"required": ["uid", "username", "totalBalance"]
},
"trades": {
"title": "Trade Record",
"description": "Stores historical trade data.",
"type": "object",
"properties": {
"tradeId": { "type": "string" },
"uid": { "type": "string" },
"pair": { "type": "string" },
"modeType": { "type": "string", "enum": ["demo", "real"] },
"tradeMode": { "type": "string", "enum": ["Aggressive", "Momentum", "Scalping", "Conservative"] },
"amount": { "type": "number" },
"pnl": { "type": "number" },
"status": { "type": "string" },
"timeTaken": { "type": "number" },
"startedAt": { "type": "string", "format": "date-time" },
"endedAt": { "type": "string", "format": "date-time" },
"createdAt": { "type": "string", "format": "date-time" }
},
"required": ["tradeId", "uid", "pair", "modeType", "amount"]
},
"trade_live_updates": {
"title": "Live Trade Update",
"description": "Stores real-time updates for active trades.",
"type": "object",
"properties": {
"updateId": { "type": "string" },
"uid": { "type": "string" },
"pair": { "type": "string" },
"modeType": { "type": "string" },
"tradeMode": { "type": "string" },
"amount": { "type": "number" },
"floatingPnl": { "type": "number" },
"status": { "type": "string" },
"startedAt": { "type": "string", "format": "date-time" },
"updatedAt": { "type": "string", "format": "date-time" }
},
"required": ["updateId", "uid", "pair"]
},
"demo_wallets": {
"title": "Demo Wallet",
"description": "Stores simulated wallet balances for demo mode.",
"type": "object",
"properties": {
"uid": { "type": "string" },
"demoBalance": { "type": "number" },
"updatedAt": { "type": "string", "format": "date-time" }
},
"required": ["uid", "demoBalance"]
},
"posts": {
"title": "Community Post",
"description": "Stores user posts in the community tab.",
"type": "object",
"properties": {
"postId": { "type": "string" },
"uid": { "type": "string" },
"content": { "type": "string" },
"createdAt": { "type": "string", "format": "date-time" },
"likeCount": { "type": "number" },
"commentCount": { "type": "number" }
},
"required": ["postId", "uid", "content"]
},
"comments": {
"title": "Post Comment",
"description": "Stores comments on community posts.",
"type": "object",
"properties": {
"commentId": { "type": "string" },
"postId": { "type": "string" },
"uid": { "type": "string" },
"content": { "type": "string" },
"createdAt": { "type": "string", "format": "date-time" }
},
"required": ["commentId", "postId", "uid", "content"]
}
},
"firestore": {
"/users/{uid}": { "schema": "users", "description": "User profiles" },
"/leaderboard/{uid}": { "schema": "leaderboard", "description": "Leaderboard entries" },
"/trades/{tradeId}": { "schema": "trades", "description": "Historical trades" },
"/trade_live_updates/{updateId}": { "schema": "trade_live_updates", "description": "Live trade updates" },
"/demo_wallets/{uid}": { "schema": "demo_wallets", "description": "Demo wallet balances" },
"/posts/{postId}": { "schema": "posts", "description": "Community posts" },
"/posts/{postId}/comments/{commentId}": { "schema": "comments", "description": "Post comments" }
}
}