/
relationship_attribute.ts
35 lines (32 loc) · 1.07 KB
/
relationship_attribute.ts
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
/********************************************************************************
* Copyright (c) 2024 CrossBreeze.
********************************************************************************/
/** Valid relationship with attribute */
export const relationship_with_attribute = `relationship:
id: Order_Customer
parent: Customer
child: Order
type: "1:1"
attributes:
- parent: Customer.Id
child: Order.CustomerId`;
/** Relationship with invalid attribute (wrong entity) */
export const relationship_with_attribute_wrong_entity = `relationship:
id: Order_Customer
parent: Customer
child: Order
type: "1:1"
attributes:
- parent: Customer.Id
child: Order.Address`;
/** Relationship with invalid attribute (duplicates) */
export const relationship_with_duplicate_attributes = `relationship:
id: Order_Customer
parent: Customer
child: Order
type: "1:1"
attributes:
- parent: Customer.Id
child: Order.CustomerId
- parent: Customer.Id
child: Order.CustomerId`;