For Britcoin there are 3 different types of withdrawal: Bitcoin, UK-domestic, UK-international:
mysql> describe requests;
+-----------+---------------------+------+-----+-------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+---------------------+------+-----+-------------------+----------------+
| reqid | int(10) unsigned | NO | PRI | NULL | auto_increment |
| req_type | varchar(6) | NO | | NULL | |
| uid | int(10) unsigned | NO | | NULL | |
| amount | bigint(20) unsigned | NO | | NULL | |
| curr_type | varchar(6) | NO | | NULL | |
| timest | timestamp | NO | | CURRENT_TIMESTAMP | |
| status | varchar(6) | NO | | VERIFY | |
+-----------+---------------------+------+-----+-------------------+----------------+
7 rows in set (0.00 sec)
mysql> describe bitcoin_requests;
+-------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+------------------+------+-----+---------+-------+
| reqid | int(10) unsigned | NO | PRI | NULL | |
| addy | varchar(44) | NO | | NULL | |
+-------+------------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
mysql> describe international_requests;
+-------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+------------------+------+-----+---------+-------+
| reqid | int(10) unsigned | NO | PRI | NULL | |
| iban | varchar(36) | NO | | NULL | |
| swift | varchar(12) | NO | | NULL | |
+-------+------------------+------+-----+---------+-------+
3 rows in set (0.00 sec)
mysql> describe uk_requests;
+-----------+------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+------------------+------+-----+---------+-------+
| reqid | int(10) unsigned | NO | PRI | NULL | |
| name | varchar(40) | NO | | NULL | |
| bank | varchar(40) | NO | | NULL | |
| acc_num | varchar(8) | NO | | NULL | |
| sort_code | varchar(6) | NO | | NULL | |
+-----------+------------------+------+-----+---------+-------+
5 rows in set (0.00 sec)
Each of those requests 'shares' the requests tables but adds their own specific data.
I'd like some way to tell which data should be joined to the requests tables and what type of request it was (Bitcoin, UK-domestic, UK-international).
Maybe an accounts field or using views is the way to go.