85 lines
1.5 KiB
JSON
85 lines
1.5 KiB
JSON
{
|
|
"name": "story",
|
|
"base": "PersistedModel",
|
|
"idInjection": true,
|
|
"trackChanges": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"unique": true
|
|
},
|
|
"headline": {
|
|
"type": "string",
|
|
"unique": false
|
|
},
|
|
"timePosted": {
|
|
"type": "number",
|
|
"default": 0
|
|
},
|
|
"link": {
|
|
"type": "string",
|
|
"unique": false
|
|
},
|
|
"metaDescription": {
|
|
"type": "string",
|
|
"default": "",
|
|
"unique": false
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"unique": false
|
|
},
|
|
"originalStoryAuthorEmail": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"rank": {
|
|
"type": "number",
|
|
"default": 0
|
|
},
|
|
"upVotes": {
|
|
"type": "array",
|
|
"default": []
|
|
},
|
|
"author": {
|
|
"type": {}
|
|
},
|
|
"comments": {
|
|
"type": "array",
|
|
"default": []
|
|
},
|
|
"image": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"storyLink": {
|
|
"type": "string",
|
|
"default": ""
|
|
}
|
|
},
|
|
"validations": [],
|
|
"relations": {},
|
|
"acls": [
|
|
{
|
|
"accessType": "*",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "DENY"
|
|
},
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$authenticated",
|
|
"permission": "ALLOW"
|
|
},
|
|
{
|
|
"accessType": "EXECUTE",
|
|
"principalType": "ROLE",
|
|
"principalId": "$authenticated",
|
|
"permission": "ALLOW",
|
|
"property": "create"
|
|
}
|
|
],
|
|
"methods": []
|
|
}
|