# reference_payment_type

## Description

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

```sql
CREATE TABLE `reference_payment_type` (
  `reference_payment_type_id` smallint unsigned NOT NULL AUTO_INCREMENT,
  `payment_type` enum('advance','bulk_payouts') NOT NULL,
  `payment_service` varchar(255) NOT NULL,
  `is_internal` tinyint(1) DEFAULT '0',
  `notes` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`reference_payment_type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=[Redacted by tbls] DEFAULT CHARSET=utf8mb3
```

</details>

## Columns

| Name                      | Type                           | Default | Nullable | Extra Definition | Children                                                                                                                                                                                                                                                                                            | Parents | Comment |
| ------------------------- | ------------------------------ | ------- | -------- | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ------- |
| is_internal               | tinyint(1)                     | 0       | true     |                  |                                                                                                                                                                                                                                                                                                     |         |         |
| notes                     | varchar(255)                   |         | true     |                  |                                                                                                                                                                                                                                                                                                     |         |         |
| payment_service           | varchar(255)                   |         | false    |                  |                                                                                                                                                                                                                                                                                                     |         |         |
| payment_type              | enum('advance','bulk_payouts') |         | false    |                  |                                                                                                                                                                                                                                                                                                     |         |         |
| reference_payment_type_id | smallint unsigned              |         | false    | auto_increment   | [account_payee](account_payee.md) [contract_advance](contract_advance.md) [contract_advance_history](contract_advance_history.md) [payee](payee.md) [reference_payoneer_program](reference_payoneer_program.md) [account_payee_history](account_payee_history.md) [payee_history](payee_history.md) |         |         |

## Constraints

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

## Indexes

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

## Relations

![er](reference_payment_type.svg)

---

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