-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.rules.json
More file actions
25 lines (25 loc) · 881 Bytes
/
Copy pathdatabase.rules.json
File metadata and controls
25 lines (25 loc) · 881 Bytes
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
{
"rules": {
"users": {
"$userId": {
".read": "$userId === auth.uid",
".write": "$userId === auth.uid",
"notes": {
"$noteId": {
".validate": "newData.hasChildren(['id', 'title', 'content', 'createdAt', 'updatedAt'])"
}
},
"folders": {
"$folderId": {
".validate": "newData.hasChildren(['id', 'name', 'createdAt'])"
}
},
"documents": {
"$documentId": {
".validate": "newData.hasChildren(['id', 'userId', 'fileName', 'fileSize', 'mimeType', 'fileType', 'uploadedAt', 'storagePath', 'indexed', 'status'])"
}
}
}
}
}
}