# payment_group_payment_batch_account

## Description

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

```sql
CREATE TABLE `payment_group_payment_batch_account` (
  `payment_group_payment_batch_account_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `payment_group_payment_account_id` mediumint unsigned NOT NULL,
  `payment_group_payment_batch_id` bigint unsigned 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 (`payment_group_payment_batch_account_id`),
  KEY `fk_payment_group_payment_account` (`payment_group_payment_account_id`),
  KEY `fk_payment_batch_account_payment_group_payment_batch` (`payment_group_payment_batch_id`),
  CONSTRAINT `fk_payment_batch_account_payment_group_payment_batch` FOREIGN KEY (`payment_group_payment_batch_id`) REFERENCES `payment_group_payment_batch` (`payment_group_payment_batch_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_payment_group_payment_account` FOREIGN KEY (`payment_group_payment_account_id`) REFERENCES `payment_group_payment_account` (`payment_group_payment_account_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 |
| -------------------------------------- | ------------------ | ------- | -------- | ---------------- | -------- | ----------------------------------------------------------------- | ------- |
| created_at                             | datetime           |         | false    |                  |          |                                                                   |         |
| created_by                             | varchar(255)       |         | false    |                  |          |                                                                   |         |
| last_modified                          | datetime           |         | false    |                  |          |                                                                   |         |
| last_modified_by                       | varchar(255)       |         | false    |                  |          |                                                                   |         |
| payment_group_payment_account_id       | mediumint unsigned |         | false    |                  |          | [payment_group_payment_account](payment_group_payment_account.md) |         |
| payment_group_payment_batch_account_id | bigint unsigned    |         | false    | auto_increment   |          |                                                                   |         |
| payment_group_payment_batch_id         | bigint unsigned    |         | false    |                  |          | [payment_group_payment_batch](payment_group_payment_batch.md)     |         |

## Constraints

| Name                                                 | Type        | Definition                                                                                                                 |
| ---------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------- |
| PRIMARY                                              | PRIMARY KEY | PRIMARY KEY (payment_group_payment_batch_account_id)                                                                       |
| fk_payment_batch_account_payment_group_payment_batch | FOREIGN KEY | FOREIGN KEY (payment_group_payment_batch_id) REFERENCES payment_group_payment_batch (payment_group_payment_batch_id)       |
| fk_payment_group_payment_account                     | FOREIGN KEY | FOREIGN KEY (payment_group_payment_account_id) REFERENCES payment_group_payment_account (payment_group_payment_account_id) |

## Indexes

| Name                                                 | Definition                                                                                            |
| ---------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| PRIMARY                                              | PRIMARY KEY (payment_group_payment_batch_account_id) USING BTREE                                      |
| fk_payment_batch_account_payment_group_payment_batch | KEY fk_payment_batch_account_payment_group_payment_batch (payment_group_payment_batch_id) USING BTREE |
| fk_payment_group_payment_account                     | KEY fk_payment_group_payment_account (payment_group_payment_account_id) USING BTREE                   |

## Relations

![er](payment_group_payment_batch_account.svg)

---

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