# public.installed_nodes

## Columns

| Name | Type | Default | Nullable | Children | Parents | Comment |
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
| name | varchar(200) |  | false |  |  |  |
| type | varchar(200) |  | false |  |  |  |
| latestVersion | integer | 1 | false |  |  |  |
| package | varchar(241) |  | false |  | [public.installed_packages](public.installed_packages.md) |  |

## Constraints

| Name | Type | Definition |
| ---- | ---- | ---------- |
| installed_nodes_latestVersion_not_null | n | NOT NULL "latestVersion" |
| installed_nodes_name_not_null | n | NOT NULL name |
| installed_nodes_package_not_null | n | NOT NULL package |
| installed_nodes_type_not_null | n | NOT NULL type |
| FK_73f857fc5dce682cef8a99c11dbddbc969618951 | FOREIGN KEY | FOREIGN KEY (package) REFERENCES installed_packages("packageName") ON UPDATE CASCADE ON DELETE CASCADE |
| PK_8ebd28194e4f792f96b5933423fc439df97d9689 | PRIMARY KEY | PRIMARY KEY (name) |

## Indexes

| Name | Definition |
| ---- | ---------- |
| PK_8ebd28194e4f792f96b5933423fc439df97d9689 | CREATE UNIQUE INDEX "PK_8ebd28194e4f792f96b5933423fc439df97d9689" ON public.installed_nodes USING btree (name) |

## Relations

```mermaid
erDiagram

"public.installed_nodes" }o--|| "public.installed_packages" : "FOREIGN KEY (package) REFERENCES installed_packages(#quot;packageName#quot;) ON UPDATE CASCADE ON DELETE CASCADE"

"public.installed_nodes" {
  varchar_200_ name
  varchar_200_ type
  integer latestVersion
  varchar_241_ package FK
}
"public.installed_packages" {
  varchar_214_ packageName
  varchar_50_ installedVersion
  varchar_70_ authorName
  varchar_70_ authorEmail
  timestamp_3__with_time_zone createdAt
  timestamp_3__with_time_zone updatedAt
}
```

---

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