Продукт
+----------------+----------------+--------+-------+----------+----------------+
|Field | Type | Null | Key | Default | Extra |
+----------------+----------------+--------+-------+----------+----------------+
|id | int(11) | No | PRI | Null | auto_increment |
|modelNumber | varchar(150) | No | | | |
|manufacturer_id | int(11) | No | | | |
|name | varchar(100) | No | | | |
|department_id | int(11) | No | | | |
|class_id | int(11) | No | | | |
|subclass_id | int(11) | No | | | |
+----------------+----------------+--------+-------+----------+----------------+
Department_id
+---------------+----------------+--------+-------+----------+-------------+
|Field | Type | Null | Key | Default | Extra |
+---------------+----------------+--------+-------+----------+-------------+
|department_id | int(11) | | PRI | | |
|name | varchar(100) | | | | |
+---------------+----------------+--------+-------+----------+-------------+
Производитель
+----------------+----------------+--------+-------+----------+---------------+
|Field | Type | Null | Key | Default | Extra |
+----------------+----------------+--------+-------+----------+---------------+
|manufacturer_id | int(11) | | PRI | | |
|name | varchar(100) | | | | |
+----------------+----------------+--------+-------+----------+---------------+
Класс
+-----------+----------------+--------+-------+----------+----------+
|Field | Type | Null | Key | Default | Extra |
+-----------+----------------+--------+-------+----------+----------+
|class_id | int(11) | | PRI | | |
|name | varchar(100) | | | | |
+-----------+----------------+--------+-------+----------+----------+
Подкласс
+---------------+----------------+--------+-------+----------+------------+
|Field | Type | Null | Key | Default | Extra |
+---------------+----------------+--------+-------+----------+------------+
|subclass_id | int(11) | | PRI | | |
|name | varchar(100) | | | | |
+---------------+----------------+--------+-------+----------+------------+
У меня нет полного контроля над тем, как я получаю данные, так как я получаю большой объем данных через XML.Мне нужно создать базу данных, которая позволит мне расширяться.