# accounting_period_report

## Description

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

```sql
CREATE TABLE `accounting_period_report` (
  `accounting_period_report_id` mediumint unsigned NOT NULL AUTO_INCREMENT,
  `accounting_period_id` smallint unsigned NOT NULL,
  `report_type` varchar(32) COLLATE utf8mb4_general_ci NOT NULL,
  `report_export_url` varchar(180) COLLATE utf8mb4_general_ci NOT NULL,
  `created_by` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `last_modified_by` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
  `last_modified` datetime NOT NULL,
  PRIMARY KEY (`accounting_period_report_id`),
  KEY `fk_accounting_period_report_acc_period` (`accounting_period_id`),
  CONSTRAINT `fk_accounting_period_report_acc_period` FOREIGN KEY (`accounting_period_id`) REFERENCES `accounting_period` (`accounting_period_id`) ON DELETE CASCADE ON UPDATE CASCADE
) 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 |
| --------------------------- | ------------------ | ------- | -------- | ---------------- | -------- | ----------------------------------------- | ------- |
| accounting_period_id        | smallint unsigned  |         | false    |                  |          | [accounting_period](accounting_period.md) |         |
| accounting_period_report_id | mediumint unsigned |         | false    | auto_increment   |          |                                           |         |
| created_at                  | datetime           |         | false    |                  |          |                                           |         |
| created_by                  | varchar(255)       |         | false    |                  |          |                                           |         |
| last_modified               | datetime           |         | false    |                  |          |                                           |         |
| last_modified_by            | varchar(255)       |         | false    |                  |          |                                           |         |
| report_export_url           | varchar(180)       |         | false    |                  |          |                                           |         |
| report_type                 | varchar(32)        |         | false    |                  |          |                                           |         |

## Constraints

| Name                                   | Type        | Definition                                                                             |
| -------------------------------------- | ----------- | -------------------------------------------------------------------------------------- |
| PRIMARY                                | PRIMARY KEY | PRIMARY KEY (accounting_period_report_id)                                              |
| fk_accounting_period_report_acc_period | FOREIGN KEY | FOREIGN KEY (accounting_period_id) REFERENCES accounting_period (accounting_period_id) |

## Indexes

| Name                                   | Definition                                                                    |
| -------------------------------------- | ----------------------------------------------------------------------------- |
| PRIMARY                                | PRIMARY KEY (accounting_period_report_id) USING BTREE                         |
| fk_accounting_period_report_acc_period | KEY fk_accounting_period_report_acc_period (accounting_period_id) USING BTREE |

## Relations

![er](accounting_period_report.svg)

---

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