freeCodeCamp/api-server/common/models/block.json

54 lines
1.2 KiB
JSON
Raw Normal View History

2016-03-12 05:45:58 +00:00
{
"name": "block",
"base": "PersistedModel",
"idInjection": true,
"options": {
"validateUpsert": true
},
"properties": {
"superBlock": {
"type": "string",
"required": true,
"description": "The super block that this block belongs to"
2016-03-12 05:45:58 +00:00
},
"order": {
"type": "number",
"required": true,
"description": "The order in which this block appears"
2016-03-12 05:45:58 +00:00
},
"name": {
"type": "string",
"required": true,
"description": "The name of this block derived from the title, suitable for regex search"
},
"superOrder": {
"type": "number",
"required": true
},
"dashedName": {
"type": "string",
"required": true,
"description": "Generated from the title to be URL friendly"
},
"title": {
"type": "string",
"required": true,
"description": "The title of this block, suitable for display"
2016-03-21 22:39:45 +00:00
},
"time": {
"type": "string",
"required": false
2016-03-12 05:45:58 +00:00
}
},
"validations": [],
"relations": {
"challenges": {
"type": "hasMany",
"model": "challenge",
"foreignKey": "blockId"
}
},
"acls": [],
"methods": {}
}