loopback/test/fixtures/user-integration-app/common/models/post.json

21 lines
298 B
JSON

{
"name": "post",
"base": "PersistedModel",
"properties": {
"title": {
"type": "string"
},
"content": {
"type": "string"
},
"notes": {
"type": "string"
}
},
"relations": {
"user": {
"type": "belongsTo",
"model": "User"
}
}
}