UNPKG

1.5 kBJSONView Raw
1[
2 {
3 "name": "Address",
4 "properties": {
5 "label": "string",
6 "street": "string",
7 "city": "string",
8 "zipCode": "string"
9 }
10 },
11
12 {
13 "name": "Account",
14 "properties": {
15 "id": "string",
16 "customer": {
17 "type": "Customer",
18 "relation": {
19 "type": "belongsTo",
20 "as": "account"
21 }
22 },
23 "balance": "number"
24 }
25 },
26
27 {
28 "name": "Customer",
29 "options": {
30 "oracle": {
31 "owner": "STRONGLOOP",
32 "table": "CUSTOMER"
33 }
34 },
35 "properties": {
36 "id": {
37 "type": "number",
38 "id": true,
39 "doc": "Customer ID"
40 },
41 "firstName": {
42 "type": "string",
43 "trim": true,
44 "required": true,
45 "oracle": {
46 "column": "FNAME",
47 "type": "VARCHAR",
48 "length": 32
49 }
50 },
51 "lastName": {
52 "type": "string",
53 "trim": true,
54 "required": true,
55 "oracle": {
56 "column": "LNAME",
57 "type": "VARCHAR",
58 "length": 32
59 }
60 },
61 "vip": {
62 "type": "boolean",
63 "doc": "indicate if the customer is a VIP",
64 "oracle": {
65 "column": "VIP",
66 "type": "CHAR",
67 "length": 1
68 }
69 },
70 "emails": [
71 {
72 "type": "string",
73 "trim": true
74 }
75 ],
76 "address": {
77 "type": "Address"
78 },
79 "account": "Account"
80 }
81 }
82
83]
\No newline at end of file