Skip to content

Commit eba38c4

Browse files
committed
Updates to data model and data sources for related objects
1 parent 3744604 commit eba38c4

3 files changed

Lines changed: 11 additions & 20 deletions

File tree

src/dataModel/model.cto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ concept MasterRecordId identified by Id {
105105

106106
@Term("Address Relationship")
107107
@Crud("Createable,Readable,Updateable")
108-
--> Address addy
108+
--> Address addy2 optional
109109

110110
@Term("Address Object")
111111
@Crud("Createable,Readable,Updateable")
112-
o Address addy2
112+
o Address addy
113113
}
114114

115115
// Concept: Address

src/db/Account.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"Id": "0",
44
"Name": "Account 0",
5-
"MasterRecordId": "1",
5+
"msRecord2": "1",
66
"PushCount": 100.0,
77
"Type": "Customer_Direct",
88
"ShippingLatitude": null,
@@ -11,7 +11,7 @@
1111
{
1212
"Id": "1",
1313
"Name": "Account 1",
14-
"MasterRecordId": "1",
14+
"msRecord2": "1",
1515
"PushCount": null,
1616
"Type": null,
1717
"ShippingLatitude": null,
@@ -20,7 +20,7 @@
2020
{
2121
"Id": "2",
2222
"Name": "updatedTestAccount",
23-
"MasterRecordId": "2",
23+
"msRecord2": "2",
2424
"PushCount": 7.0,
2525
"Type": null,
2626
"ShippingLatitude": 11.0,
@@ -29,7 +29,7 @@
2929
{
3030
"Id": "3",
3131
"Name": "Account 3",
32-
"MasterRecordId": "2",
32+
"msRecord2": "2",
3333
"PushCount": null,
3434
"Type": null,
3535
"ShippingLatitude": null,
@@ -38,7 +38,7 @@
3838
{
3939
"Id": "4",
4040
"Name": "Account 4",
41-
"MasterRecordId": "1",
41+
"msRecord2": "1",
4242
"PushCount": null,
4343
"Type": null,
4444
"ShippingLatitude": null,
@@ -47,7 +47,7 @@
4747
{
4848
"Id": "5",
4949
"Name": "Test Account",
50-
"MasterRecordId": "2",
50+
"msRecord2": "2",
5151
"PushCount": 6.0,
5252
"Type": null,
5353
"ShippingLatitude": 10.0,
@@ -56,7 +56,7 @@
5656
{
5757
"Id": "6",
5858
"Name": "TechCorp Solutions",
59-
"MasterRecordId": "1",
59+
"msRecord2": "1",
6060
"PushCount": 6.0,
6161
"Type": null,
6262
"ShippingLatitude": 10.0,

src/db/MasterRecordId.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,8 @@
77
"Type": "Customer_Direct",
88
"ShippingLatitude": 1.0052,
99
"lastUpdated": "2025-03-15T14:30:00Z",
10-
"addy": "1",
10+
"addy2": "1",
1111
"Name": "Master Record 0",
12-
"addy2": {
13-
"$class": "org.example.Address",
14-
"street1": "123 Tech Valley Dr",
15-
"street2": "Suite 2100",
16-
"locality": "San Francisco",
17-
"subdivision": "CA",
18-
"countryOrRegion": "USA",
19-
"postalCode": "94105"
20-
},
2112
"ChildMasterRecordIds": ["2"]
2213
},
2314
{
@@ -28,7 +19,7 @@
2819
"Type": "Prospect",
2920
"ShippingLatitude": null,
3021
"lastUpdated": "2025-03-16T09:45:00Z",
31-
"addy": "2",
22+
"addy2": "2",
3223
"Name": "Primary Record",
3324
"ChildMasterRecordIds": []
3425
}

0 commit comments

Comments
 (0)