public.insights_by_period¶
列¶
| 名称 | 类型 | 默认值 | 可空 | 子表 | 父表 | 注释 |
|---|---|---|---|---|---|---|
| id | integer | false | ||||
| metaId | integer | false | public.insights_metadata | |||
| periodStart | timestamp(0) with time zone | CURRENT_TIMESTAMP | true | |||
| periodUnit | integer | false | 0: hour, 1: day, 2: week | |||
| type | integer | false | 0: time_saved_minutes, 1: runtime_milliseconds, 2: success, 3: failure | |||
| value | bigint | false |
约束¶
| 名称 | 类型 | 定义 |
|---|---|---|
| FK_6414cfed98daabbfdd61a1cfbc0 | FOREIGN KEY | FOREIGN KEY ("metaId") REFERENCES insights_metadata("metaId") ON DELETE CASCADE |
| PK_b606942249b90cc39b0265f0575 | PRIMARY KEY | PRIMARY KEY (id) |
| insights_by_period_id_not_null | n | NOT NULL id |
| insights_by_period_metaId_not_null | n | NOT NULL "metaId" |
| insights_by_period_periodUnit_not_null | n | NOT NULL "periodUnit" |
| insights_by_period_type_not_null | n | NOT NULL type |
| insights_by_period_value_not_null | n | NOT NULL value |
索引¶
| 名称 | 定义 |
|---|---|
| IDX_60b6a84299eeb3f671dfec7693 | CREATE UNIQUE INDEX "IDX_60b6a84299eeb3f671dfec7693" ON public.insights_by_period USING btree ("periodStart", type, "periodUnit", "metaId") |
| PK_b606942249b90cc39b0265f0575 | CREATE UNIQUE INDEX "PK_b606942249b90cc39b0265f0575" ON public.insights_by_period USING btree (id) |
关系¶
erDiagram
"public.insights_by_period" }o--|| "public.insights_metadata" : "FOREIGN KEY (#quot;metaId#quot;) REFERENCES insights_metadata(#quot;metaId#quot;) ON DELETE CASCADE"
"public.insights_by_period" {
integer id
integer metaId FK
timestamp_0__with_time_zone periodStart
integer periodUnit
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