Blame view
node_modules/loopback-datasource-juggler/test/test2-schemas.json
1.46 KB
f7563de62
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
[ { "name": "Address", "properties": { "label": "string", "street": "string", "city": "string", "zipCode": "string" } }, { "name": "Account", "properties": { "id": "string", "customer": { "type": "Customer", "relation": { "type": "belongsTo", "as": "account" } }, "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" } } ] |