# ai.newnal.illi.service.homeLink

> Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.service.homeLink)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.service.homeLink/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.service.homeLink/examples)

## Definitions

### `ai.newnal.illi.service.homeLink`

**Type**: `record`

Mirror of one account's role in one home; rkey <homeId>-<did>. The Service Node database is authoritative; this record exists so the registry can be rebuilt from the sphere.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `did` | `string` (did) | Yes |  |
| `home` | `string` (tid) | Yes |  |
| `parentSlot` | `integer` | No | Present when role is parent. |
| `role` | `string` | Yes |  |
| `status` | `string` | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Mirror of one account's role in one home; rkey <homeId>-<did>. The Service Node database is authoritative; this record exists so the registry can be rebuilt from the sphere.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "did": {
            "format": "did",
            "type": "string"
          },
          "home": {
            "format": "tid",
            "type": "string"
          },
          "parentSlot": {
            "description": "Present when role is parent.",
            "maximum": 2,
            "minimum": 1,
            "type": "integer"
          },
          "role": {
            "knownValues": [
              "rootAdmin",
              "mainAdmin",
              "member",
              "parent"
            ],
            "type": "string"
          },
          "status": {
            "knownValues": [
              "active",
              "removed",
              "left"
            ],
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "home",
          "did",
          "role",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.illi.service.homeLink",
  "lexicon": 1
}
```
