# run_controller

## Description

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

```sql
CREATE TABLE `run_controller` (
  `run_controller_id` mediumint unsigned NOT NULL AUTO_INCREMENT,
  `run_controller_name` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `contract_type` enum('distribution','legacy_distribution','neighbouring_rights') COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'distribution',
  `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,
  `deleted_by` varchar(180) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`run_controller_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 |
| ------------------- | ---------------------------------------------------------------- | ------------ | -------- | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ------- |
| contract_type       | enum('distribution','legacy_distribution','neighbouring_rights') | distribution | false    |                  |                                                                                                                                                                                                           |         |         |
| created_at          | datetime                                                         |              | false    |                  |                                                                                                                                                                                                           |         |         |
| created_by          | varchar(255)                                                     |              | false    |                  |                                                                                                                                                                                                           |         |         |
| deleted_at          | datetime                                                         |              | true     |                  |                                                                                                                                                                                                           |         |         |
| deleted_by          | varchar(180)                                                     |              | true     |                  |                                                                                                                                                                                                           |         |         |
| last_modified       | datetime                                                         |              | false    |                  |                                                                                                                                                                                                           |         |         |
| last_modified_by    | varchar(255)                                                     |              | false    |                  |                                                                                                                                                                                                           |         |         |
| run_controller_id   | mediumint unsigned                                               |              | false    | auto_increment   | [accounting_run](accounting_run.md) [contract_template](contract_template.md) [run_controller_contract](run_controller_contract.md) [run_controller_contract_history](run_controller_contract_history.md) |         |         |
| run_controller_name | varchar(255)                                                     |              | true     |                  |                                                                                                                                                                                                           |         |         |

## Constraints

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

## Indexes

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

## Relations

![er](run_controller.svg)

---

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