# public.insights_raw ## Columns | Name | Type | Default | Nullable | Children | Parents | Comment | | ---- | ---- | ------- | -------- | -------- | ------- | ------- | | id | integer | | false | | | | | metaId | integer | | false | | [public.insights_metadata](public.insights_metadata.md) | | | 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 | | | | ## Constraints | Name | Type | Definition | | ---- | ---- | ---------- | | 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 | ## Indexes | Name | Definition | | ---- | ---------- | | 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) | ## Relations ```mermaid 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 } ``` --- > Generated by [tbls](https://github.com/k1LoW/tbls)