# reference_vat_rate

## Description

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

```sql
CREATE TABLE `reference_vat_rate` (
  `reference_vat_rate_id` mediumint unsigned NOT NULL AUTO_INCREMENT,
  `vat_type` enum('client','supplier') COLLATE utf8mb4_general_ci NOT NULL,
  `country_of_tax_residence` char(3) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `country_of_tax_policy` char(3) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `is_sba_signed` tinyint(1) DEFAULT NULL,
  `is_tax_applicable` tinyint(1) DEFAULT NULL,
  `is_vat_registered_in_country_of_tax_policy` tinyint(1) DEFAULT NULL,
  `transaction_type` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `tax_rate` decimal(5,2) DEFAULT NULL,
  `effective_date` date DEFAULT 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 (`reference_vat_rate_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 |
| ------------------------------------------ | ------------------------- | ------- | -------- | ---------------- | -------- | ------- | ------- |
| country_of_tax_policy                      | char(3)                   |         | true     |                  |          |         |         |
| country_of_tax_residence                   | char(3)                   |         | true     |                  |          |         |         |
| created_at                                 | datetime                  |         | false    |                  |          |         |         |
| created_by                                 | varchar(255)              |         | false    |                  |          |         |         |
| effective_date                             | date                      |         | true     |                  |          |         |         |
| is_sba_signed                              | tinyint(1)                |         | true     |                  |          |         |         |
| is_tax_applicable                          | tinyint(1)                |         | true     |                  |          |         |         |
| is_vat_registered_in_country_of_tax_policy | tinyint(1)                |         | true     |                  |          |         |         |
| last_modified                              | datetime                  |         | false    |                  |          |         |         |
| last_modified_by                           | varchar(255)              |         | false    |                  |          |         |         |
| reference_vat_rate_id                      | mediumint unsigned        |         | false    | auto_increment   |          |         |         |
| tax_rate                                   | decimal(5,2)              |         | true     |                  |          |         |         |
| transaction_type                           | varchar(255)              |         | true     |                  |          |         |         |
| vat_type                                   | enum('client','supplier') |         | false    |                  |          |         |         |

## Constraints

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

## Indexes

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

## Relations

![er](reference_vat_rate.svg)

---

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