mirror of
https://github.com/n8n-io/n8n.git
synced 2026-07-27 19:15:01 +02:00
1.8 KiB
1.8 KiB
insights_raw
Description
Table Definition
CREATE TABLE "insights_raw" ("id" integer PRIMARY KEY NOT NULL, "metaId" integer NOT NULL, "type" integer NOT NULL, "value" bigint NOT NULL, "timestamp" datetime(0) NOT NULL DEFAULT (CURRENT_TIMESTAMP), CONSTRAINT "FK_d66d942bc9907488832eb0eed81" FOREIGN KEY ("metaId") REFERENCES "insights_metadata" ("metaId") ON DELETE CASCADE)
Columns
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| id | INTEGER | false | ||||
| metaId | INTEGER | false | insights_metadata | |||
| timestamp | datetime(0) | CURRENT_TIMESTAMP | false | |||
| type | INTEGER | false | ||||
| value | bigint | false |
Constraints
| Name | Type | Definition |
|---|---|---|
| - (Foreign key ID: 0) | FOREIGN KEY | FOREIGN KEY (metaId) REFERENCES insights_metadata (metaId) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE |
| id | PRIMARY KEY | PRIMARY KEY (id) |
Indexes
| Name | Definition |
|---|---|
| IDX_insights_raw_timestamp_id | CREATE INDEX "IDX_insights_raw_timestamp_id" ON "insights_raw" ("timestamp", "id") |
Relations
erDiagram
"insights_raw" }o--|| "insights_metadata" : "FOREIGN KEY (metaId) REFERENCES insights_metadata (metaId) ON UPDATE NO ACTION ON DELETE CASCADE MATCH NONE"
"insights_raw" {
INTEGER id
INTEGER metaId FK
datetime_0_ timestamp
INTEGER type
bigint value
}
"insights_metadata" {
INTEGER metaId
varchar_36_ projectId FK
varchar_255_ projectName
varchar_16_ workflowId FK
varchar_128_ workflowName
}
Generated by tbls