Initial commit from ux_aura_central
This commit is contained in:
73
firebase-blueprint.json
Normal file
73
firebase-blueprint.json
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"entities": {
|
||||
"User": {
|
||||
"title": "User",
|
||||
"description": "A user of the Aura platform.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The user's full name."
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"format": "email",
|
||||
"description": "The user's email address."
|
||||
},
|
||||
"phone": {
|
||||
"type": "string",
|
||||
"description": "The user's phone number."
|
||||
},
|
||||
"uid": {
|
||||
"type": "string",
|
||||
"description": "The user's unique Firebase Auth ID."
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "When the user account was created."
|
||||
}
|
||||
},
|
||||
"required": ["name", "email", "phone", "uid", "createdAt"]
|
||||
},
|
||||
"Subscription": {
|
||||
"title": "Subscription",
|
||||
"description": "A user's subscription and credit settings.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"plan": {
|
||||
"type": "string",
|
||||
"description": "The selected Aura plan."
|
||||
},
|
||||
"topUpAmount": {
|
||||
"type": "number",
|
||||
"description": "The amount to top up."
|
||||
},
|
||||
"rechargeLevel": {
|
||||
"type": "number",
|
||||
"description": "The balance level at which to auto-recharge."
|
||||
},
|
||||
"uid": {
|
||||
"type": "string",
|
||||
"description": "The user's unique Firebase Auth ID."
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "When the subscription was last updated."
|
||||
}
|
||||
},
|
||||
"required": ["plan", "topUpAmount", "rechargeLevel", "uid", "updatedAt"]
|
||||
}
|
||||
},
|
||||
"firestore": {
|
||||
"/users/{uid}": {
|
||||
"schema": "User",
|
||||
"description": "User profile data."
|
||||
},
|
||||
"/subscriptions/{uid}": {
|
||||
"schema": "Subscription",
|
||||
"description": "User subscription data."
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user