2013-05-28 22:26:12 +00:00
|
|
|
[
|
2014-01-24 17:09:53 +00:00
|
|
|
{
|
|
|
|
"name": "Address",
|
|
|
|
"properties": {
|
|
|
|
"label": "string",
|
|
|
|
"street": "string",
|
|
|
|
"city": "string",
|
|
|
|
"zipCode": "string"
|
|
|
|
}
|
|
|
|
},
|
2013-05-28 22:26:12 +00:00
|
|
|
|
2014-01-24 17:09:53 +00:00
|
|
|
{
|
|
|
|
"name": "Account",
|
|
|
|
"properties": {
|
|
|
|
"id": "string",
|
|
|
|
"customer": {
|
|
|
|
"type": "Customer",
|
|
|
|
"relation": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"as": "account"
|
2013-05-28 22:26:12 +00:00
|
|
|
}
|
2014-01-24 17:09:53 +00:00
|
|
|
},
|
|
|
|
"balance": "number"
|
|
|
|
}
|
|
|
|
},
|
2013-05-28 22:26:12 +00:00
|
|
|
|
2014-01-24 17:09:53 +00:00
|
|
|
{
|
|
|
|
"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
|
2013-05-28 22:26:12 +00:00
|
|
|
}
|
2014-01-24 17:09:53 +00:00
|
|
|
],
|
|
|
|
"address": {
|
|
|
|
"type": "Address"
|
|
|
|
},
|
|
|
|
"account": "Account"
|
2013-05-28 22:26:12 +00:00
|
|
|
}
|
2014-01-24 17:09:53 +00:00
|
|
|
}
|
2013-05-28 22:26:12 +00:00
|
|
|
|
|
|
|
]
|