# installed_packages

## Description

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

```sql
CREATE TABLE "installed_packages" ("packageName"	char(214) NOT NULL,"installedVersion"	char(50) NOT NULL,"authorName"	char(70) NULL,"authorEmail"	char(70) NULL,"createdAt"	datetime(3) NOT NULL DEFAULT 'STRFTIME(''%Y-%m-%d %H:%M:%f'', ''NOW'')',"updatedAt"	datetime(3) NOT NULL DEFAULT 'STRFTIME(''%Y-%m-%d %H:%M:%f'', ''NOW'')',PRIMARY KEY("packageName"))
```

</details>

## Columns

| Name | Type | Default | Nullable | Children | Parents | Comment |
| ---- | ---- | ------- | -------- | -------- | ------- | ------- |
| packageName | char(214) |  | false | [installed_nodes](installed_nodes.md) |  |  |
| installedVersion | char(50) |  | false |  |  |  |
| authorName | char(70) |  | true |  |  |  |
| authorEmail | char(70) |  | true |  |  |  |
| createdAt | datetime(3) | 'STRFTIME(''%Y-%m-%d %H:%M:%f'', ''NOW'')' | false |  |  |  |
| updatedAt | datetime(3) | 'STRFTIME(''%Y-%m-%d %H:%M:%f'', ''NOW'')' | false |  |  |  |

## Constraints

| Name | Type | Definition |
| ---- | ---- | ---------- |
| packageName | PRIMARY KEY | PRIMARY KEY (packageName) |
| sqlite_autoindex_installed_packages_1 | PRIMARY KEY | PRIMARY KEY (packageName) |

## Indexes

| Name | Definition |
| ---- | ---------- |
| sqlite_autoindex_installed_packages_1 | PRIMARY KEY (packageName) |

## Relations

```mermaid
erDiagram

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

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

---

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