# schedule_attachment_history

## Description

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

```sql
CREATE TABLE `schedule_attachment_history` (
  `schedule_attachment_history_id` mediumint unsigned NOT NULL AUTO_INCREMENT,
  `schedule_attachment_id` mediumint unsigned NOT NULL,
  `schedule_id` mediumint unsigned NOT NULL,
  `target_type` varchar(180) COLLATE utf8mb4_general_ci NOT NULL,
  `target_id` varchar(180) COLLATE utf8mb4_general_ci NOT NULL,
  `created_by` varchar(180) COLLATE utf8mb4_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `last_modified_by` varchar(180) COLLATE utf8mb4_general_ci NOT NULL,
  `last_modified` datetime NOT NULL,
  `deleted_by` varchar(180) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`schedule_attachment_history_id`)
) ENGINE=InnoDB AUTO_INCREMENT=[Redacted by tbls] DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci
```

</details>

## Columns

| Name                           | Type               | Default | Nullable | Extra Definition | Children | Parents                                       | Comment |
| ------------------------------ | ------------------ | ------- | -------- | ---------------- | -------- | --------------------------------------------- | ------- |
| created_at                     | datetime           |         | false    |                  |          |                                               |         |
| created_by                     | varchar(180)       |         | false    |                  |          |                                               |         |
| deleted_at                     | datetime           |         | true     |                  |          |                                               |         |
| deleted_by                     | varchar(180)       |         | true     |                  |          |                                               |         |
| last_modified                  | datetime           |         | false    |                  |          |                                               |         |
| last_modified_by               | varchar(180)       |         | false    |                  |          |                                               |         |
| schedule_attachment_history_id | mediumint unsigned |         | false    | auto_increment   |          |                                               |         |
| schedule_attachment_id         | mediumint unsigned |         | false    |                  |          | [schedule_attachment](schedule_attachment.md) |         |
| schedule_id                    | mediumint unsigned |         | false    |                  |          | [schedule](schedule.md)                       |         |
| target_id                      | varchar(180)       |         | false    |                  |          |                                               |         |
| target_type                    | varchar(180)       |         | false    |                  |          |                                               |         |

## Constraints

| Name    | Type        | Definition                                   |
| ------- | ----------- | -------------------------------------------- |
| PRIMARY | PRIMARY KEY | PRIMARY KEY (schedule_attachment_history_id) |

## Indexes

| Name    | Definition                                               |
| ------- | -------------------------------------------------------- |
| PRIMARY | PRIMARY KEY (schedule_attachment_history_id) USING BTREE |

## Relations

![er](schedule_attachment_history.svg)

---

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