> ## Documentation Index
> Fetch the complete documentation index at: https://docs.contactsmanager.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Relation

> Relationship information for contacts in the ContactsManager SDK

# Relation

The `ContactRelation` model represents a relationship between a contact and another person in the ContactsManager SDK.

## Properties

* `relationId: String` - Unique identifier for the relation entry
* `name: String?` - Name of the related person
* `relationType: String?` - Type of relationship (spouse, child, parent, friend, etc.)
* `notes: String?` - Additional notes about the relationship
* `contact: Contact?` - Reference to the parent contact that owns this relation

## Usage Example

```swift theme={null}
// Create a relation
let relation = ContactRelation(
    contactId: "contact-123",
    name: "Jane Doe",
    relationType: "spouse",
    notes: "Married since 2015"
)

// Add to a contact
contact.relations.append(relation)

// Access from a contact
if let firstRelation = contact.relations.first {
    print("Relation: \(firstRelation.display())")
}
```

## Related

* [Contact Model](/models/contact) - The parent contact model
* [Social Profile Model](/models/social-profile) - Social media profiles for contacts
