Skip to content

Commit 01ef4be

Browse files
tpellissierclaude
andcommitted
Reorganize models: relationship.py (domain-based) + labels.py
Move relationship input models (CascadeConfiguration, LookupAttributeMetadata, OneToManyRelationshipMetadata, ManyToManyRelationshipMetadata) from metadata.py into relationship.py alongside RelationshipInfo output model. Extract Label/LocalizedLabel into labels.py. Delete metadata.py. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 839f37b commit 01ef4be

File tree

15 files changed

+986
-516
lines changed

15 files changed

+986
-516
lines changed

.claude/skills/dataverse-sdk-use/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ client.tables.delete("new_Product")
232232

233233
#### Create One-to-Many Relationship
234234
```python
235-
from PowerPlatform.Dataverse.models.metadata import (
235+
from PowerPlatform.Dataverse.models.relationship import (
236236
LookupAttributeMetadata,
237237
OneToManyRelationshipMetadata,
238238
Label,
@@ -264,7 +264,7 @@ print(f"Created lookup field: {result['lookup_schema_name']}")
264264

265265
#### Create Many-to-Many Relationship
266266
```python
267-
from PowerPlatform.Dataverse.models.metadata import ManyToManyRelationshipMetadata
267+
from PowerPlatform.Dataverse.models.relationship import ManyToManyRelationshipMetadata
268268

269269
relationship = ManyToManyRelationshipMetadata(
270270
schema_name="new_employee_project",

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,12 @@ client.tables.delete("new_Product")
317317
Create relationships between tables using the relationship API. For a complete working example, see [examples/advanced/relationships.py](https://github.com/microsoft/PowerPlatform-DataverseClient-Python/blob/main/examples/advanced/relationships.py).
318318

319319
```python
320-
from PowerPlatform.Dataverse.models.metadata import (
320+
from PowerPlatform.Dataverse.models.relationship import (
321321
LookupAttributeMetadata,
322322
OneToManyRelationshipMetadata,
323323
ManyToManyRelationshipMetadata,
324-
Label,
325-
LocalizedLabel,
326324
)
325+
from PowerPlatform.Dataverse.models.labels import Label, LocalizedLabel
327326

328327
# Create a one-to-many relationship: Department (1) -> Employee (N)
329328
# This adds a "Department" lookup field to the Employee table

0 commit comments

Comments
 (0)