Skip to content

public.mcp_server_block

Columns

Name Type Default Nullable Children Parents Comment
blockedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
blockedById uuid true public.user Who blocked the person. NULL after the user is deleted
serverId uuid false public.mcp_server
userId uuid false public.user The blocked person. The block applies to all clients

Constraints

Name Type Definition
FK_319813a1818266a1f46efbd5c70 FOREIGN KEY FOREIGN KEY ("userId") REFERENCES "user"(id) ON DELETE CASCADE
FK_3d365ab7009dc331429a1a55049 FOREIGN KEY FOREIGN KEY ("serverId") REFERENCES mcp_server(id) ON DELETE CASCADE
FK_707fcb57b18801980b8774f31f6 FOREIGN KEY FOREIGN KEY ("blockedById") REFERENCES "user"(id) ON DELETE SET NULL
PK_4c99af40cdadca36886d43893f4 PRIMARY KEY PRIMARY KEY ("serverId", "userId")
mcp_server_block_blockedAt_not_null n NOT NULL "blockedAt"
mcp_server_block_serverId_not_null n NOT NULL "serverId"
mcp_server_block_userId_not_null n NOT NULL "userId"

Indexes

Name Definition
IDX_319813a1818266a1f46efbd5c7 CREATE INDEX "IDX_319813a1818266a1f46efbd5c7" ON public.mcp_server_block USING btree ("userId")
IDX_707fcb57b18801980b8774f31f CREATE INDEX "IDX_707fcb57b18801980b8774f31f" ON public.mcp_server_block USING btree ("blockedById")
PK_4c99af40cdadca36886d43893f4 CREATE UNIQUE INDEX "PK_4c99af40cdadca36886d43893f4" ON public.mcp_server_block USING btree ("serverId", "userId")

Relations

erDiagram

"public.mcp_server_block" }o--o| "public.user" : "FOREIGN KEY (#quot;blockedById#quot;) REFERENCES #quot;user#quot;(id) ON DELETE SET NULL"
"public.mcp_server_block" }o--|| "public.mcp_server" : "FOREIGN KEY (#quot;serverId#quot;) REFERENCES mcp_server(id) ON DELETE CASCADE"
"public.mcp_server_block" }o--|| "public.user" : "FOREIGN KEY (#quot;userId#quot;) REFERENCES #quot;user#quot;(id) ON DELETE CASCADE"

"public.mcp_server_block" {
  timestamp_3__with_time_zone blockedAt
  uuid blockedById FK
  uuid serverId FK
  uuid userId FK
}
"public.user" {
  timestamp_3__with_time_zone createdAt
  boolean disabled
  varchar_255_ email
  varchar_32_ firstName
  uuid id
  varchar_16_ kind
  date lastActiveAt
  varchar_32_ lastName
  boolean mfaEnabled
  text mfaRecoveryCodes
  text mfaSecret
  varchar_255_ password
  json personalizationAnswers
  varchar_128_ roleSlug FK
  json settings
  timestamp_3__with_time_zone updatedAt
}
"public.mcp_server" {
  timestamp_3__with_time_zone createdAt
  uuid createdById FK
  timestamp_3__with_time_zone deletedAt
  text description
  uuid id
  varchar_128_ name
  varchar_36_ projectId FK
  varchar_128_ slug
  timestamp_3__with_time_zone updatedAt
}

Generated by tbls

Markdown source: View on AtomGit·Content from the open-source project n8/n8n