39 lines
653 B
JSON
39 lines
653 B
JSON
{
|
|
"name": "order",
|
|
"plural": "orders",
|
|
"base": "PersistedModel",
|
|
"idInjection": true,
|
|
"options": {
|
|
"validateUpsert": true
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"total": {
|
|
"type": "number",
|
|
"required": true
|
|
},
|
|
"datetime": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
"validations": [],
|
|
"relations": {
|
|
"customer": {
|
|
"type": "belongsTo",
|
|
"model": "customer",
|
|
"foreignKey": ""
|
|
},
|
|
"products": {
|
|
"type": "hasMany",
|
|
"model": "product",
|
|
"foreignKey": "",
|
|
"through": "orderProducts"
|
|
}
|
|
},
|
|
"acls": [],
|
|
"methods": {}
|
|
}
|