# mcp_registry_server

## Description

<details>
<summary><strong>Table Definition</strong></summary>

```sql
CREATE TABLE "mcp_registry_server" ("slug" varchar(255) PRIMARY KEY NOT NULL, "status" varchar(50) NOT NULL, "version" varchar(50) NOT NULL, "registryUpdatedAt" datetime(3) NOT NULL, "data" text NOT NULL DEFAULT ('{}'), "createdAt" datetime(3) NOT NULL DEFAULT (STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')), "updatedAt" datetime(3) NOT NULL DEFAULT (STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')), CONSTRAINT "CHK_tmp_mcp_registry_server_status" CHECK ("status" IN ('active', 'deprecated')))
```

</details>

## Columns

| Name | Type | Default | Nullable | Children | Parents | Comment |
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
| createdAt | datetime(3) | STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW') | false |  |  |  |
| data | TEXT | '{}' | false |  |  |  |
| registryUpdatedAt | datetime(3) |  | false |  |  |  |
| slug | varchar(255) |  | false | [instance_ai_mcp_registry_connections](instance_ai_mcp_registry_connections.md) |  |  |
| status | varchar(50) |  | false |  |  |  |
| updatedAt | datetime(3) | STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW') | false |  |  |  |
| version | varchar(50) |  | false |  |  |  |

## Constraints

| Name | Type | Definition |
| ---- | ---- | ---------- |
| - | CHECK | CHECK ("status" IN ('active', 'deprecated')) |
| slug | PRIMARY KEY | PRIMARY KEY (slug) |
| sqlite_autoindex_mcp_registry_server_1 | PRIMARY KEY | PRIMARY KEY (slug) |

## Indexes

| Name | Definition |
| ---- | ---------- |
| sqlite_autoindex_mcp_registry_server_1 | PRIMARY KEY (slug) |

## Relations

```mermaid
erDiagram

"instance_ai_mcp_registry_connections" }o--|| "mcp_registry_server" : "FOREIGN KEY (serverSlug) REFERENCES mcp_registry_server (slug) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE"

"mcp_registry_server" {
  datetime_3_ createdAt
  TEXT data
  datetime_3_ registryUpdatedAt
  varchar_255_ slug PK
  varchar_50_ status
  datetime_3_ updatedAt
  varchar_50_ version
}
"instance_ai_mcp_registry_connections" {
  datetime_3_ createdAt
  varchar_36_ credentialId FK
  varchar id PK
  varchar_255_ serverSlug FK
  TEXT toolFilter
  datetime_3_ updatedAt
  varchar userId FK
}
```

---

> Generated by [tbls](https://github.com/k1LoW/tbls)
