I am trying to create a nested CDT with one-to-many relationship for two existin

I am trying to create a nested CDT with one-to-many relationship for two existing tables and I am having difficulty making it work the way I wanted to. Hope someone can help me with this. The child table in this case has index based on two primary keys.
--- Customer table ---
ID (Primary key)
Name

--- Groups table --- (Primary keys Group_Id, Customer_ID)
Group_Id
Group_Name
Customer_ID

When I use write to datastore, one row is inserted/updated in the parent (expected) and only one row is being inserted/updated in the child table. Please see attached xsd

Appreciate any help

customer.xsd

OriginalPostID-167656

OriginalPostID-167656

  Discussion posts and replies are publicly visible