跳转至

public.service_account_details

列

名称 类型 默认值 可空 子表 父表 说明
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
name varchar(128) false 服务账户的显示名称
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
userId uuid false public.user 服务账户在用户表中的 ID

约束

名称 类型 定义
FK_service_account_details_userId FOREIGN KEY FOREIGN KEY ("userId") REFERENCES "user"(id) ON DELETE CASCADE
PK_77005c3f2e094b2bd756d1f2ee0 PRIMARY KEY PRIMARY KEY ("userId")
service_account_details_createdAt_not_null n NOT NULL "createdAt"
service_account_details_name_not_null n NOT NULL name
service_account_details_updatedAt_not_null n NOT NULL "updatedAt"
service_account_details_userId_not_null n NOT NULL "userId"

索引

名称 定义
PK_77005c3f2e094b2bd756d1f2ee0 CREATE UNIQUE INDEX "PK_77005c3f2e094b2bd756d1f2ee0" ON public.service_account_details USING btree ("userId")

关系

erDiagram

"public.service_account_details" |o--|| "public.user" : "FOREIGN KEY (#quot;userId#quot;) REFERENCES #quot;user#quot;(id) ON DELETE CASCADE"

"public.service_account_details" {
  timestamp_3__with_time_zone createdAt
  varchar_128_ name
  timestamp_3__with_time_zone updatedAt
  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
}

由 tbls 生成

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n