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

# Registrations

### Table Details

| Property | Value |
| - | - |
| Table Name | `base.ens.registrations` |
| Table Status | Production-Ready |
| Unique Key | `registration_timestamp::date`, `transaction_hash`, `log_index` |
| Clustering Key(s) | `registration_timestamp::date` |
| Search Optimization | `owner_address`, `token_id`, `name` |

### Table Columns

| Column Name | Data Type | Description |
| - | - | - |
| name | VARCHAR(16777216) | Registered label without the `.base.eth` suffix, e.g. `alice` for `alice.base.eth`. Holds the hex string when the label bytes are not valid UTF-8. |
| token\_id | VARCHAR(16777216) | ERC-721 token ID of the Basename, the decimal form of the `keccak256` hash of the label (the indexed `label` topic of `NameRegistered`). |
| registration\_timestamp | TIMESTAMP\_NTZ(9) | Timestamp (UTC) when the Basename was registered onchain. |
| expiry\_timestamp | TIMESTAMP\_NTZ(9) | Timestamp (UTC) when the Basename registration expires. After expiry the name can be registered by anyone. |
| owner\_address | VARCHAR(42) | Address that owns the registered Basename, from the `owner` field of the `NameRegistered` event. |
| eth\_cost | VARCHAR(16777216) | Not populated on Base (always NULL). Basenames emits the price in a separate payment event, which this table does not read. |
| usd\_cost | FLOAT | Not populated on Base (always NULL), because `eth_cost` is not populated. |
| transaction\_hash | VARCHAR(66) | Hash of the transaction that produced this record. Uniquely identifies a transaction within the blockchain. |
| log\_index | NUMBER(38,0) | Zero-based position of this event log within its transaction. The first log emitted by a transaction has index 0. |
| block\_number | NUMBER(38,0) | Sequential number of the block that contains this record. Starts at 0 (genesis block) and increments by 1 for each new block. |
| block\_hash | VARCHAR(66) | Cryptographic hash of the block header that contains this record. Uniquely identifies a block. |
| \_created\_at | TIMESTAMP\_NTZ(9) | Timestamp of when the entry was created in the database. |
| \_updated\_at | TIMESTAMP\_NTZ(9) | Timestamp of when the entry was last updated in the database. |
