{ "name": "New", "base": "PersistedModel", "options": { "mysql": { "table": "hedera.news" } }, "properties": { "id": { "type": "Number", "id": true, "description": "Identifier" }, "title": { "type": "String", "required": true }, "text": { "type": "String", "required": true }, "image": { "type": "String" }, "created": { "type": "Date", "required": true, "defaultFn": "now" }, "priority": { "type": "Number", "required": true }, "tag": { "type": "String", "required": true } }, "relations": { "user": { "type": "belongsTo", "model": "Account", "foreignKey": "userFk" } }, "acls": [ { "accessType": "READ", "principalType": "ROLE", "principalId": "$everyone", "permission": "ALLOW" } ] }