2013-05-28 22:26:12 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "Address",
|
|
|
|
"properties": {
|
|
|
|
"label": "string",
|
|
|
|
"street": "string",
|
|
|
|
"city": "string",
|
|
|
|
"zipCode": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"name": "Account",
|
|
|
|
"properties": {
|
|
|
|
"id": "string",
|
|
|
|
"customer": {
|
|
|
|
"type": "Customer",
|
2013-11-16 04:29:20 +00:00
|
|
|
"relation": {
|
2013-05-28 22:26:12 +00:00
|
|
|
"type": "belongsTo",
|
2013-11-16 04:29:20 +00:00
|
|
|
"as": "account"
|
2013-05-28 22:26:12 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"balance": "number"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"name": "Customer",
|
|
|
|
"options": {
|
|
|
|
"oracle": {
|
|
|
|
"owner": "STRONGLOOP",
|
|
|
|
"table": "CUSTOMER"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "number",
|
|
|
|
"id": true,
|
|
|
|
"doc": "Customer ID"
|
|
|
|
},
|
|
|
|
"firstName": {
|
|
|
|
"type": "string",
|
|
|
|
"trim": true,
|
|
|
|
"required": true,
|
|
|
|
"oracle": {
|
|
|
|
"column": "FNAME",
|
|
|
|
"type": "VARCHAR",
|
|
|
|
"length": 32
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lastName": {
|
|
|
|
"type": "string",
|
|
|
|
"trim": true,
|
|
|
|
"required": true,
|
|
|
|
"oracle": {
|
|
|
|
"column": "LNAME",
|
|
|
|
"type": "VARCHAR",
|
|
|
|
"length": 32
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"vip": {
|
|
|
|
"type": "boolean",
|
|
|
|
"doc": "indicate if the customer is a VIP",
|
|
|
|
"oracle": {
|
|
|
|
"column": "VIP",
|
|
|
|
"type": "CHAR",
|
|
|
|
"length": 1
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"emails": [
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"trim": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"address": {
|
|
|
|
"type": "Address"
|
|
|
|
},
|
|
|
|
"account": "Account"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|