-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathproduct.json
More file actions
52 lines (52 loc) · 890 Bytes
/
product.json
File metadata and controls
52 lines (52 loc) · 890 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
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
{
"name": "product",
"base": "PersistedModel",
"idInjection": true,
"options": {
"validateUpsert": true
},
"properties": {
"name": {
"type": "string",
"required": true
},
"price": {
"type": "number",
"required": true,
"default": 0
},
"description": {
"type": "string",
"required": true
},
"image": {
"type": "string",
"required": true
},
"nutrition": {
"type": [
"string"
],
"default": [
"[]"
]
}
},
"validations": [],
"relations": {},
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
],
"methods": {}
}