-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase-blueprint.json
More file actions
48 lines (48 loc) · 1.54 KB
/
Copy pathfirebase-blueprint.json
File metadata and controls
48 lines (48 loc) · 1.54 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
{
"entities": {
"User": {
"title": "User",
"description": "User profile with optional contact details",
"type": "object",
"properties": {
"userId": { "type": "string" },
"name": { "type": "string" },
"email": { "type": "string" },
"mobile": { "type": "string" },
"createdAt": { "type": "number" },
"updatedAt": { "type": "number" }
},
"required": ["userId", "createdAt", "updatedAt"]
},
"ProductIdea": {
"title": "ProductIdea",
"description": "User's submitted product idea and its analysis",
"type": "object",
"properties": {
"id": { "type": "string" },
"userId": { "type": "string" },
"name": { "type": "string" },
"description": { "type": "string" },
"category": { "type": "string" },
"materials": { "type": "string" },
"productionLocation": { "type": "string" },
"targetMarket": { "type": "string" },
"intendedLifespan": { "type": "string" },
"distributionChannel": { "type": "string" },
"analysis": { "type": "object" },
"createdAt": { "type": "number" }
},
"required": ["id", "userId", "name", "description", "createdAt"]
}
},
"firestore": {
"/users/{userId}": {
"schema": { "$ref": "#/entities/User" },
"description": "Stores user profile"
},
"/users/{userId}/ideas/{ideaId}": {
"schema": { "$ref": "#/entities/ProductIdea" },
"description": "Stores user's generated product ideas"
}
}
}