public.insights_raw¶
列¶
| 名称 | 类型 | 默认值 | 可空 | 子表 | 父表 | 注释 |
|---|---|---|---|---|---|---|
| id | integer | false | ||||
| metaId | integer | false | public.insights_metadata | |||
| timestamp | timestamp(0) with time zone | CURRENT_TIMESTAMP | false | |||
| type | integer | false | 0:time_saved_minutes,1:runtime_milliseconds,2:success,3:failure | |||
| value | bigint | false |
约束¶
| 名称 | 类型 | 定义 |
|---|---|---|
| FK_6e2e33741adef2a7c5d66befa4e | FOREIGN KEY | FOREIGN KEY ("metaId") REFERENCES insights_metadata("metaId") ON DELETE CASCADE |
| PK_ec15125755151e3a7e00e00014f | PRIMARY KEY | PRIMARY KEY (id) |
| insights_raw_id_not_null | n | NOT NULL id |
| insights_raw_metaId_not_null | n | NOT NULL "metaId" |
| insights_raw_timestamp_not_null | n | NOT NULL "timestamp" |
| insights_raw_type_not_null | n | NOT NULL type |
| insights_raw_value_not_null | n | NOT NULL value |
索引¶
| 名称 | 定义 |
|---|---|
| IDX_insights_raw_timestamp_id | CREATE INDEX "IDX_insights_raw_timestamp_id" ON public.insights_raw USING btree ("timestamp", id) |
| PK_ec15125755151e3a7e00e00014f | CREATE UNIQUE INDEX "PK_ec15125755151e3a7e00e00014f" ON public.insights_raw USING btree (id) |
关系¶
erDiagram
"public.insights_raw" }o--|| "public.insights_metadata" : "FOREIGN KEY (#quot;metaId#quot;) REFERENCES insights_metadata(#quot;metaId#quot;) ON DELETE CASCADE"
"public.insights_raw" {
integer id
integer metaId FK
timestamp_0__with_time_zone timestamp
integer type
bigint value
}
"public.insights_metadata" {
integer metaId
varchar_36_ projectId FK
varchar_255_ projectName
varchar_36_ workflowId FK
varchar_128_ workflowName
}由 tbls 生成
本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n