# public.workflow_statistics

## Columns

| Name | Type | Default | Nullable | Children | Parents | Comment |
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
| count | bigint | 0 | true |  |  |  |
| latestEvent | timestamp(3) with time zone |  | true |  |  |  |
| name | varchar(128) |  | false |  |  |  |
| workflowId | varchar(36) |  | false |  |  |  |
| rootCount | bigint | 0 | true |  |  |  |
| id | integer | nextval('workflow_statistics_id_seq'::regclass) | false |  |  |  |
| workflowName | varchar(128) |  | true |  |  |  |

## Constraints

| Name | Type | Definition |
| ---- | ---- | ---------- |
| workflow_statistics_id_not_null | n | NOT NULL id |
| workflow_statistics_name_not_null | n | NOT NULL name |
| workflow_statistics_workflowId_not_null1 | n | NOT NULL "workflowId" |
| workflow_statistics_pkey | PRIMARY KEY | PRIMARY KEY (id) |

## Indexes

| Name | Definition |
| ---- | ---------- |
| workflow_statistics_pkey | CREATE UNIQUE INDEX workflow_statistics_pkey ON public.workflow_statistics USING btree (id) |
| IDX_workflow_statistics_workflow_name | CREATE UNIQUE INDEX "IDX_workflow_statistics_workflow_name" ON public.workflow_statistics USING btree ("workflowId", name) |

## Relations

```mermaid
erDiagram


"public.workflow_statistics" {
  bigint count
  timestamp_3__with_time_zone latestEvent
  varchar_128_ name
  varchar_36_ workflowId
  bigint rootCount
  integer id
  varchar_128_ workflowName
}
```

---

> Generated by [tbls](https://github.com/k1LoW/tbls)
