# installed_nodes

## Description

<details>
<summary><strong>Table Definition</strong></summary>

```sql
CREATE TABLE "installed_nodes" ("name"	char(200) NOT NULL,"type"	char(200) NOT NULL,"latestVersion"	INTEGER DEFAULT 1,"package"	char(214) NOT NULL,PRIMARY KEY("name"),FOREIGN KEY("package") REFERENCES "installed_packages"("packageName") ON DELETE CASCADE ON UPDATE CASCADE)
```

</details>

## Columns

| Name | Type | Default | Nullable | Children | Parents | Comment |
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
| name | char(200) |  | false |  |  |  |
| type | char(200) |  | false |  |  |  |
| latestVersion | INTEGER | 1 | true |  |  |  |
| package | char(214) |  | false |  | [installed_packages](installed_packages.md) |  |

## Constraints

| Name | Type | Definition |
| ---- | ---- | ---------- |
| name | PRIMARY KEY | PRIMARY KEY (name) |
| - (Foreign key ID: 0) | FOREIGN KEY | FOREIGN KEY (package) REFERENCES installed_packages (packageName) ON UPDATE CASCADE ON DELETE CASCADE MATCH NONE |
| sqlite_autoindex_installed_nodes_1 | PRIMARY KEY | PRIMARY KEY (name) |

## Indexes

| Name | Definition |
| ---- | ---------- |
| sqlite_autoindex_installed_nodes_1 | PRIMARY KEY (name) |

## Relations

```mermaid
erDiagram

"installed_nodes" }o--|| "installed_packages" : "FOREIGN KEY (package) REFERENCES installed_packages (packageName) ON UPDATE CASCADE ON DELETE CASCADE MATCH NONE"

"installed_nodes" {
  char_200_ name PK
  char_200_ type
  INTEGER latestVersion
  char_214_ package FK
}
"installed_packages" {
  char_214_ packageName PK
  char_50_ installedVersion
  char_70_ authorName
  char_70_ authorEmail
  datetime_3_ createdAt
  datetime_3_ updatedAt
}
```

---

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