Ciao,
secondo voi sono meglio 3 tabelle con relative FK
o una tabella unica che implementi l'algoritmo modified preorder tree traversal tipo questa
Codice PHP:
CREATE TABLE `locations` (
`id` int unsigned NOT NULL AUTO_INCREMENT,
`parent_id` int unsigned DEFAULT NULL,
`zip` int unsigned DEFAULT NULL,
`place` varchar(255) NOT NULL,
`lft` int unsigned NOT NULL,
`rgt` int unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `parent_id` (`parent_id`),
KEY `lt` (`lft`),
KEY `rt` (`rgt`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8